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


##########
mllib/src/main/scala/org/apache/spark/ml/util/Instrumentation.scala:
##########
@@ -53,8 +54,8 @@ private[spark] class Instrumentation private () extends 
Logging with MLEvents {
     // estimator.getClass.getSimpleName can cause Malformed class name error,
     // call safer `Utils.getSimpleName` instead
     val className = Utils.getSimpleName(stage.getClass)
-    logInfo(s"Stage class: $className")
-    logInfo(s"Stage uid: ${stage.uid}")
+    logInfo(log"Stage class: ${MDC(CLASS_NAME, className)}")
+    logInfo(log"Stage uid: ${MDC(STAGE_ID, stage.uid)}")

Review Comment:
   ```suggestion
       logInfo(log"Stage uid: ${MDC(PIPELINE_STAGE_UID, stage.uid)}")
   ```



-- 
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