gengliangwang commented on code in PR #46079: URL: https://github.com/apache/spark/pull/46079#discussion_r1571792309
########## streaming/src/main/scala/org/apache/spark/streaming/scheduler/ReceivedBlockTracker.scala: ########## @@ -247,7 +247,8 @@ private[streaming] class ReceivedBlockTracker( true } catch { case NonFatal(e) => - logWarning(s"Exception thrown while writing record: $record to the WriteAheadLog.", e) + logWarning(log"Exception thrown while writing record: " + + log"${MDC(RECEIVED_BLOCK_TRACKER_LOG_EVENT, record)} to the WriteAheadLog.", e) Review Comment: Using the class name `RECEIVED_BLOCK_TRACKER_LOG_EVENT` is also fine -- 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