ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkuliche...@apache.org
Subject [1/2] incubator-ignite git commit: # ignite-1228
Date Fri, 14 Aug 2015 22:31:55 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/master 776084772 -> d0536dcec


# ignite-1228

Signed-off-by: Valentin Kulichenko <valentin.kulichenko@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e5eef508
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e5eef508
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e5eef508

Branch: refs/heads/master
Commit: e5eef50844580bd9ef2dba6bdfc1efca8992e78a
Parents: 8ecddcc
Author: Valentin Kulichenko <valentin.kulichenko@gmail.com>
Authored: Tue Aug 11 18:34:58 2015 -0700
Committer: Valentin Kulichenko <valentin.kulichenko@gmail.com>
Committed: Thu Aug 13 18:57:20 2015 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/ignite/logger/log4j/Log4JLogger.java    | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e5eef508/modules/log4j/src/main/java/org/apache/ignite/logger/log4j/Log4JLogger.java
----------------------------------------------------------------------
diff --git a/modules/log4j/src/main/java/org/apache/ignite/logger/log4j/Log4JLogger.java b/modules/log4j/src/main/java/org/apache/ignite/logger/log4j/Log4JLogger.java
index e3828ab..bc843fb 100644
--- a/modules/log4j/src/main/java/org/apache/ignite/logger/log4j/Log4JLogger.java
+++ b/modules/log4j/src/main/java/org/apache/ignite/logger/log4j/Log4JLogger.java
@@ -342,6 +342,10 @@ public class Log4JLogger implements IgniteLogger, LoggerNodeIdAware,
Log4jFileAw
                     impl.setLevel(logLevel);
             }
 
+            // If still don't have appenders, disable logging.
+            if (!isConfigured())
+                impl.setLevel(Level.OFF);
+
             quiet0 = quiet;
             inited = true;
         }


Mime
View raw message