flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmetzger <...@git.apache.org>
Subject [GitHub] incubator-flink pull request: Respect log4j.properties in LocalEnv...
Date Mon, 01 Sep 2014 16:43:31 GMT
Github user rmetzger commented on a diff in the pull request:

    https://github.com/apache/incubator-flink/pull/106#discussion_r16960910
  
    --- Diff: flink-java/src/main/java/org/apache/flink/api/java/LocalEnvironment.java ---
    @@ -95,7 +95,9 @@ public boolean isLoggingEnabled() {
     	}
     	
     	private void initLogging() {
    -		LogUtils.initializeDefaultConsoleLogger(logging ? Level.INFO : Level.OFF);
    +		if(System.getProperty("log4j.properties") == null) {
    +			LogUtils.initializeDefaultConsoleLogger(logging ? Level.INFO : Level.OFF);
    --- End diff --
    
    I think that Log4J is reading the properties file if there is one (so it will automatically
take the log level from it)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message