Skip to content

Commit

Permalink
Add slf4j-simple dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhz committed Feb 6, 2025
1 parent 28cf26f commit 8d5a3f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ lazy val root = (project in file("."))
authUtils,
s3Utils,
log4catsSlf4j,
slf4jSimple,
circeGenericExtras,
circeGeneric,
circeCore,
Expand Down
1 change: 1 addition & 0 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ object Dependencies {
lazy val s3Utils = "uk.gov.nationalarchives" %% "s3-utils" % "0.1.231"
lazy val awsSsm = "software.amazon.awssdk" % "ssm" % "2.26.27"
lazy val log4catsSlf4j = "org.typelevel" %% "log4cats-slf4j" % log4CatsVersion
lazy val slf4jSimple = "org.slf4j" % "slf4j-simple" % "2.0.16"
lazy val mockitoScala = "org.mockito" %% "mockito-scala" % mockitoScalaVersion
lazy val mockitoScalaTest = "org.mockito" %% "mockito-scala-scalatest" % mockitoScalaVersion
lazy val circeCore = "io.circe" %% "circe-core" % circeVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class Lambda {
)

val resultIO = for {
_ <- logger.info(s"Metadata validation was run for $consignmentId")
fileIdData <- graphQlApi.getConsignmentFilesMetadata(
consignmentId = UUID.fromString(consignmentId),
clientSecret = getClientSecret(clientSecretPath, endpoint),
Expand All @@ -87,7 +88,6 @@ class Lambda {
_ <- updateStatus(errorFileData, validationParameters)
} yield ()

logger.info(s"Metadata validation was run for $consignmentId")
resultIO.unsafeRunSync()(cats.effect.unsafe.implicits.global)
Map[String, Object](
"consignmentId" -> consignmentId,
Expand Down

0 comments on commit 8d5a3f3

Please sign in to comment.