asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mb...@apache.org
Subject asterixdb git commit: Only Configure Logging Level For AsterixDB Loggers
Date Thu, 08 Sep 2016 16:29:10 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master e044571a5 -> 13ae9a3b2


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>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/13ae9a3b
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/13ae9a3b
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/13ae9a3b

Branch: refs/heads/master
Commit: 13ae9a3b29260a856efadc739a48e16a4e01d6e5
Parents: e044571
Author: Michael Blow <mblow@apache.org>
Authored: Wed Sep 7 19:48:06 2016 -0400
Committer: Michael Blow <mblow@apache.org>
Committed: Thu Sep 8 09:28:36 2016 -0700

----------------------------------------------------------------------
 .../org/apache/asterix/app/nc/AsterixNCAppRuntimeContext.java     | 3 ++-
 .../org/apache/asterix/runtime/util/AsterixAppContextInfo.java    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/13ae9a3b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/nc/AsterixNCAppRuntimeContext.java
----------------------------------------------------------------------
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 @@ public class AsterixNCAppRuntimeContext implements IAsterixAppRuntimeContext,
IA
 
     @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();

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/13ae9a3b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/util/AsterixAppContextInfo.java
----------------------------------------------------------------------
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 @@ public class AsterixAppContextInfo implements IAsterixApplicationContextInfo,
IA
         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() {


Mime
View raw message