gengliangwang commented on code in PR #46980:
URL: https://github.com/apache/spark/pull/46980#discussion_r1643383548


##########
streaming/src/main/scala/org/apache/spark/streaming/util/FileBasedWriteAheadLog.scala:
##########
@@ -252,7 +257,9 @@ private[streaming] class FileBasedWriteAheadLog(
           fileSystem.listStatus(logDirectoryPath).map { _.getPath 
}.toImmutableArraySeq)
         pastLogs.clear()
         pastLogs ++= logFileInfo
-        logInfo(s"Recovered ${logFileInfo.size} write ahead log files from 
$logDirectory")
+        logInfo(log"Recovered ${MDC(LogKeys.NUM_FILES, logFileInfo.size)} " +
+          log"write ahead log files from " +
+          log"${MDC(LogKeys.LOG_DIRECTORY, logDirectory)}")

Review Comment:
   PATH



##########
streaming/src/main/scala/org/apache/spark/streaming/util/FileBasedWriteAheadLog.scala:
##########
@@ -184,7 +188,8 @@ private[streaming] class FileBasedWriteAheadLog(
           logWarning(log"Error clearing write ahead log file " +
             log"${MDC(WRITE_AHEAD_LOG_INFO, walInfo)}", ex)
       }
-      logInfo(s"Cleared log files in $logDirectory older than $threshTime")
+      logInfo(log"Cleared log files in ${MDC(LogKeys.LOG_DIRECTORY, 
logDirectory)} older than " +

Review Comment:
   PATH



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to