Skip to content

Commit

Permalink
more debug over info in the batcher (#2760)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenoir authored Nov 12, 2024
1 parent fb32f8d commit a04e1a2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ object PathsProcessor extends Logging {
): Source[(Batch, List[Long]), NotUsed] = {
val selectors = Selector.forPaths(paths)
val groupedSelectors = selectors.groupBy(_._1.rootPath)
info(
debug(
s"Generated ${selectors.size} selectors spanning ${groupedSelectors.size} trees from ${paths.size} paths."
)
paths.sorted.grouped(1000).toList.zipWithIndex.foreach {
case (paths, idx) =>
val startIdx = idx * 1000 + 1
info(
debug(
s"Input paths ($startIdx-${startIdx + paths.length - 1}): ${paths.mkString(", ")}"
)
}
groupedSelectors.foreach {
case (rootPath, selectors) =>
info(
debug(
s"Selectors for root path $rootPath: ${selectors.map(_._1).mkString(", ")}"
)
}
Expand Down

0 comments on commit a04e1a2

Please sign in to comment.