Skip to content

Commit

Permalink
Improve log message for discovered enrichment files
Browse files Browse the repository at this point in the history
  • Loading branch information
pondzix committed Feb 16, 2024
1 parent f0efd0a commit aa4f977
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
}
Expand All @@ -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]] = {
Expand Down

0 comments on commit aa4f977

Please sign in to comment.