cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject git commit: [CXF-5913] - logStacktrace Property Not Implemented in MapEventLogger
Date Wed, 30 Jul 2014 11:24:01 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 7c269384d -> 1734e4f6c


[CXF-5913] - logStacktrace Property Not Implemented in MapEventLogger


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/1734e4f6
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/1734e4f6
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/1734e4f6

Branch: refs/heads/master
Commit: 1734e4f6cafa8456cff078f1c6c0467932d24841
Parents: 7c26938
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Jul 30 12:23:31 2014 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Jul 30 12:23:31 2014 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/sts/event/map/MapEventLogger.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/1734e4f6/services/sts/sts-core/src/main/java/org/apache/cxf/sts/event/map/MapEventLogger.java
----------------------------------------------------------------------
diff --git a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/event/map/MapEventLogger.java
b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/event/map/MapEventLogger.java
index 83ebfa8..d54ab14 100644
--- a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/event/map/MapEventLogger.java
+++ b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/event/map/MapEventLogger.java
@@ -74,7 +74,11 @@ public class MapEventLogger implements MapEventListener {
             }
         }
         Exception ex = (Exception) map.get(KEYS.EXCEPTION.name());
-        LOG.log(this.logLevel, builder.toString(), ex);
+        if (logStacktrace) {
+            LOG.log(this.logLevel, builder.toString(), ex);
+        } else {
+            LOG.log(this.logLevel, builder.toString());
+        }
     }
 
     private String format(Object value) {


Mime
View raw message