panbingkun commented on code in PR #45813:
URL: https://github.com/apache/spark/pull/45813#discussion_r1547710993


##########
common/utils/src/main/scala/org/apache/spark/internal/Logging.scala:
##########
@@ -48,6 +48,19 @@ case class MessageWithContext(message: String, context: 
java.util.HashMap[String
     resultMap.putAll(mdc.context)
     MessageWithContext(message + mdc.message, resultMap)
   }
+
+  def ++(s: String): MessageWithContext = {
+    MessageWithContext(message + s, context)
+  }
+}
+
+object MDC {
+
+  implicit class StringImprovements(val s: String) {
+    def ++(mdc: MessageWithContext): MessageWithContext = {

Review Comment:
   In addition, in `String ++ String`, `++` is an `alias` for `contact`, which 
sounds reasonable.
   <img width="784" alt="image" 
src="https://github.com/apache/spark/assets/15246973/83b60402-e2f5-4a43-91b2-8d25148c514e";>
   



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