gengliangwang commented on code in PR #45969:
URL: https://github.com/apache/spark/pull/45969#discussion_r1576968211
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala:
##########
@@ -74,14 +76,18 @@ case class AdaptiveSparkPlanExec(
@transient private val lock = new Object()
- @transient private val logOnLevel: ( => String) => Unit =
conf.adaptiveExecutionLogLevel match {
- case "TRACE" => logTrace(_)
- case "DEBUG" => logDebug(_)
- case "INFO" => logInfo(_)
- case "WARN" => logWarning(_)
- case "ERROR" => logError(_)
- case _ => logDebug(_)
- }
+ @transient private val logOnLevel: ( => MessageWithContext) => Unit =
+ conf.adaptiveExecutionLogLevel match {
+ case "TRACE" =>
+ def fn(log: => LogEntry): Unit = logTrace(log.message)
Review Comment:
There is a `logTrace` accepting MessageWithContext now.
--
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]