diff --git a/obp-api/src/main/scala/code/api/util/APIUtil.scala b/obp-api/src/main/scala/code/api/util/APIUtil.scala index 48ee9cacdc..f8469d92cd 100644 --- a/obp-api/src/main/scala/code/api/util/APIUtil.scala +++ b/obp-api/src/main/scala/code/api/util/APIUtil.scala @@ -448,7 +448,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{ /* Return the git commit. If we can't for some reason (not a git root etc) then log and return "" */ - def gitCommit : String = { + lazy val gitCommit : String = { val commit = try { val properties = new java.util.Properties() logger.debug("Before getResourceAsStream git.properties")