gengliangwang commented on code in PR #47256: URL: https://github.com/apache/spark/pull/47256#discussion_r1669217831
########## streaming/src/main/scala/org/apache/spark/streaming/receiver/BlockGenerator.scala: ########## @@ -276,12 +276,13 @@ private[streaming] class BlockGenerator( } // At this point, state is StoppedGeneratingBlock. So drain the queue of to-be-pushed blocks. - logInfo("Pushing out the last " + blocksForPushing.size() + " blocks") + logInfo(log"Pushing out the last " + + log"${MDC(LogKeys.NUM_BLOCK_IDS, blocksForPushing.size())} blocks") while (!blocksForPushing.isEmpty) { val block = blocksForPushing.take() - logDebug(s"Pushing block $block") + logDebug(log"Pushing block ${MDC(LogKeys.BLOCK, block)}") Review Comment: not need to change the log debug and introduce a new log key -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org