From 515e6818a3fbfd58e89bb4e71a8cd0660175158a Mon Sep 17 00:00:00 2001 From: Simon Redfern Date: Wed, 18 Oct 2023 18:40:31 +0200 Subject: [PATCH] Adding gitCommit info to the log at Boot --- obp-api/src/main/scala/bootstrap/liftweb/Boot.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/obp-api/src/main/scala/bootstrap/liftweb/Boot.scala b/obp-api/src/main/scala/bootstrap/liftweb/Boot.scala index ce86a42bda..7f02736b06 100644 --- a/obp-api/src/main/scala/bootstrap/liftweb/Boot.scala +++ b/obp-api/src/main/scala/bootstrap/liftweb/Boot.scala @@ -44,7 +44,7 @@ import code.api.ResourceDocs1_4_0._ import code.api._ import code.api.attributedefinition.AttributeDefinition import code.api.builder.APIBuilder_Connector -import code.api.util.APIUtil.{enableVersionIfAllowed, errorJsonResponse, getPropsValue} +import code.api.util.APIUtil.{enableVersionIfAllowed, errorJsonResponse, getPropsValue, gitCommit} import code.api.util._ import code.api.util.migration.Migration import code.api.util.migration.Migration.DbFunction @@ -108,7 +108,7 @@ import code.productfee.ProductFee import code.products.MappedProduct import code.ratelimiting.RateLimiting import code.remotedata.RemotedataActors -import code.scheduler.{DatabaseDriverScheduler, JobScheduler, MetricsArchiveScheduler, DataBaseCleanerScheduler} +import code.scheduler.{DataBaseCleanerScheduler, DatabaseDriverScheduler, JobScheduler, MetricsArchiveScheduler} import code.scope.{MappedScope, MappedUserScope} import code.snippet.{OAuthAuthorisation, OAuthWorkedThanks} import code.socialmedia.MappedSocialMedia @@ -232,6 +232,9 @@ class Boot extends MdcLoggable { def boot { implicit val formats = CustomJsonFormats.formats + + logger.info("Hello from the Open Bank Project API. This is Boot.scala. The gitCommit is : " + APIUtil.gitCommit) + logger.debug("Using database driver: " + APIUtil.driver)