syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject syncope git commit: [SYNCOPE-1361] provides a fix into LoggerLoader
Date Wed, 05 Sep 2018 14:11:27 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_1_X 4918e957a -> c06920e2e


[SYNCOPE-1361] provides a fix into LoggerLoader


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

Branch: refs/heads/2_1_X
Commit: c06920e2e28ab2985763ee1996e746ece8047ae8
Parents: 4918e95
Author: fmartelli <fabio.martelli@gmail.com>
Authored: Wed Sep 5 16:11:14 2018 +0200
Committer: fmartelli <fabio.martelli@gmail.com>
Committed: Wed Sep 5 16:11:14 2018 +0200

----------------------------------------------------------------------
 .../java/org/apache/syncope/core/logic/init/LoggerLoader.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/c06920e2/core/logic/src/main/java/org/apache/syncope/core/logic/init/LoggerLoader.java
----------------------------------------------------------------------
diff --git a/core/logic/src/main/java/org/apache/syncope/core/logic/init/LoggerLoader.java
b/core/logic/src/main/java/org/apache/syncope/core/logic/init/LoggerLoader.java
index 0a09641..7a5e2dc 100644
--- a/core/logic/src/main/java/org/apache/syncope/core/logic/init/LoggerLoader.java
+++ b/core/logic/src/main/java/org/apache/syncope/core/logic/init/LoggerLoader.java
@@ -121,12 +121,13 @@ public class LoggerLoader implements SyncopeLoader {
                         map(event -> AuditLoggerName.getAuditEventLoggerName(entry.getKey(),
event.toLoggerName())).
                         forEachOrdered(domainAuditLoggerName -> {
                             LoggerConfig eventLogConf = ctx.getConfiguration().getLoggerConfig(domainAuditLoggerName);
-                            if (LogManager.ROOT_LOGGER_NAME.equals(eventLogConf.getName()))
{
+                            boolean isRootLogConf = LogManager.ROOT_LOGGER_NAME.equals(eventLogConf.getName());
+                            if (isRootLogConf) {
                                 eventLogConf = new LoggerConfig(domainAuditLoggerName, null,
false);
                             }
                             addAppenderToContext(ctx, auditAppender, eventLogConf);
                             eventLogConf.setLevel(Level.DEBUG);
-                            if (LogManager.ROOT_LOGGER_NAME.equals(eventLogConf.getName()))
{
+                            if (isRootLogConf) {
                                 ctx.getConfiguration().addLogger(domainAuditLoggerName, eventLogConf);
                             }
                         });


Mime
View raw message