commit | 13ae9a3b29260a856efadc739a48e16a4e01d6e5 | [log] [tgz] |
---|---|---|
author | Michael Blow <mblow@apache.org> | Wed Sep 07 19:48:06 2016 -0400 |
committer | Michael Blow <mblow@apache.org> | Thu Sep 08 09:28:36 2016 -0700 |
tree | dca9c19cdd2ef50cab53a9be8e1ceaf10a6d965b | |
parent | e044571a5199916eae8b8da86205d67a43e5e868 [diff] |
Only Configure Logging Level For AsterixDB Loggers Previously was setting level for all apache loggers. Change-Id: I50070cfdbd89d86f9eeca12654a27f2a34b37b4d Reviewed-on: https://asterix-gerrit.ics.uci.edu/1155 Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Yingyi Bu <buyingyi@gmail.com>
diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/nc/AsterixNCAppRuntimeContext.java b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/nc/AsterixNCAppRuntimeContext.java index 077600a..9127ee5 100644 --- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/nc/AsterixNCAppRuntimeContext.java +++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/nc/AsterixNCAppRuntimeContext.java
@@ -175,7 +175,8 @@ @Override public void initialize(boolean initialRun) throws IOException, ACIDException { - Logger.getLogger("org.apache").setLevel(externalProperties.getLogLevel()); + Logger.getLogger("org.apache.asterix").setLevel(externalProperties.getLogLevel()); + Logger.getLogger("org.apache.hyracks").setLevel(externalProperties.getLogLevel()); threadExecutor = new AsterixThreadExecutor(ncApplicationContext.getThreadFactory()); fileMapManager = new AsterixFileMapManager();
diff --git a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/util/AsterixAppContextInfo.java b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/util/AsterixAppContextInfo.java index 4f2cebd..9fdeebb 100644 --- a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/util/AsterixAppContextInfo.java +++ b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/util/AsterixAppContextInfo.java
@@ -108,7 +108,8 @@ INSTANCE.hcc = hcc; INSTANCE.buildProperties = new AsterixBuildProperties(propertiesAccessor); INSTANCE.messagingProperties = new MessagingProperties(propertiesAccessor); - Logger.getLogger("org.apache").setLevel(INSTANCE.externalProperties.getLogLevel()); + Logger.getLogger("org.apache.asterix").setLevel(INSTANCE.externalProperties.getLogLevel()); + Logger.getLogger("org.apache.hyracks").setLevel(INSTANCE.externalProperties.getLogLevel()); } public boolean initialized() {