zentol commented on a change in pull request #11583: [FLINK-16883] Scan 
FLINK_CONF directory for available log4j configura…
URL: https://github.com/apache/flink/pull/11583#discussion_r402766083
 
 

 ##########
 File path: flink-dist/src/main/flink-bin/bin/flink-console.sh
 ##########
 @@ -58,7 +58,9 @@ esac
 
 FLINK_TM_CLASSPATH=`constructFlinkClassPath`
 
-log_setting=("-Dlog4j.configuration=file:${FLINK_CONF_DIR}/log4j-console.properties"
 "-Dlog4j.configurationFile=file:${FLINK_CONF_DIR}/log4j-console.properties" 
"-Dlogback.configurationFile=file:${FLINK_CONF_DIR}/logback-console.xml")
+log4j_config=`findLog4jConfiguration ${FLINK_CONF_DIR}`
 
 Review comment:
   The knowledge of it being in Flink and "dedicated" to Flink could be useful 
in the future; e.g., we could think about it being modified at runtime via the 
WebUI to change the log level. You couldn't do this if the log file is at an 
arbitrary location (for security reasons).

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to