gengliangwang commented on code in PR #46309: URL: https://github.com/apache/spark/pull/46309#discussion_r1585532948
########## core/src/main/scala/org/apache/spark/SparkConf.scala: ########## @@ -507,11 +508,11 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging with Seria // Used by Yarn in 1.1 and before sys.props.get("spark.driver.libraryPath").foreach { value => val warning = - s""" - |spark.driver.libraryPath was detected (set to '$value'). + log""" + |spark.driver.libraryPath was detected (set to '${MDC(CONFIG_VALUE, value)}'). |This is deprecated in Spark 1.2+. | - |Please instead use: ${DRIVER_LIBRARY_PATH.key} + |Please instead use: ${MDC(DRIVER_LIBRARY_PATH_KEY, DRIVER_LIBRARY_PATH.key)} Review Comment: ```suggestion |Please instead use: ${MDC(CONFIG, DRIVER_LIBRARY_PATH.key)} ``` -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org