From aa4f97784e25399cb852550fcf4d798a9de35da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Poniedzia=C5=82ek?= Date: Fri, 16 Feb 2024 11:27:14 +0100 Subject: [PATCH] Improve log message for discovered enrichment files --- .../com.snowplowanalytics.snowplow.micro/Configuration.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/Configuration.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/Configuration.scala index c46991f..ccaba4c 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/Configuration.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/Configuration.scala @@ -145,7 +145,6 @@ object Configuration { private def listAvailableEnrichments(enrichmentsDirectory: Path, fileType: String) = { listFiles(enrichmentsDirectory, fileType) - .flatTap(files => logger.info(s"Files found in $enrichmentsDirectory: ${files.mkString(", ")}")) .attemptT .leftMap(e => show"Cannot list ${enrichmentsDirectory.toAbsolutePath.toString} directory with JSON: ${e.getMessage}") } @@ -155,6 +154,7 @@ object Configuration { .filter(path => path.toString.endsWith(fileType)) .compile .toList + .flatTap(files => logger.info(s"Files with extension: '$fileType' found in $path: ${files.mkString("[", ", ", "]")}")) } private def loadEnrichmentsAsJsons(enrichments: List[FS2Path]): EitherT[IO, String, List[Json]] = {