panbingkun commented on code in PR #45813:
URL: https://github.com/apache/spark/pull/45813#discussion_r1547700148
##########
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:
The method name cannot be called `+` and does not take effect, so it is
called `++`
--
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]