You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2015/10/24 22:00:03 UTC

logging-log4j2 git commit: replace System.getProperty() with PropertiesUtil.getProperties().getStringProperty()

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 3da931070 -> e75ddf9cf


replace System.getProperty() with
PropertiesUtil.getProperties().getStringProperty()

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/e75ddf9c
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/e75ddf9c
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/e75ddf9c

Branch: refs/heads/master
Commit: e75ddf9cf0409c179e71cb0606393a0db3c2746d
Parents: 3da9310
Author: rpopma <rp...@apache.org>
Authored: Sun Oct 25 05:00:09 2015 +0900
Committer: rpopma <rp...@apache.org>
Committed: Sun Oct 25 05:00:09 2015 +0900

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/core/async/DisruptorUtil.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e75ddf9c/log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorUtil.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorUtil.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorUtil.java
index f9df4b7..8d3f9e2 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorUtil.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorUtil.java
@@ -40,7 +40,7 @@ class DisruptorUtil {
     }
 
     static WaitStrategy createWaitStrategy(final String propertyName) {
-        final String strategy = System.getProperty(propertyName);
+        final String strategy = PropertiesUtil.getProperties().getStringProperty(propertyName);
         if (strategy != null) {
             LOGGER.trace("property {}={}", propertyName, strategy);
             if ("Sleep".equalsIgnoreCase(strategy)) {
@@ -73,7 +73,7 @@ class DisruptorUtil {
     }
 
     static <T> ExceptionHandler<T> getExceptionHandler(final String propertyName, Class<T> type) {
-        final String cls = System.getProperty(propertyName);
+        final String cls = PropertiesUtil.getProperties().getStringProperty(propertyName);
         if (cls == null) {
             return null;
         }