JAMES-2199 Fix an inconsistent-level logger call A call to info() was guarded by a check that logging at the debug level is enabled.
This issue was found by SLF4J Helper for NetBeans IDE: http://plugins.netbeans.org/plugin/72557/ Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/e5506d20 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/e5506d20 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/e5506d20 Branch: refs/heads/master Commit: e5506d20e06e4afa7b9b8f0d760ad97f9c652b52 Parents: 7bce062 Author: Daniel Trebbien <[email protected]> Authored: Thu Oct 19 22:10:37 2017 -0500 Committer: Antoine Duprat <[email protected]> Committed: Mon Dec 18 20:31:50 2017 +0100 ---------------------------------------------------------------------- .../java/org/apache/james/fetchmail/ParsedConfiguration.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/e5506d20/server/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/ParsedConfiguration.java ---------------------------------------------------------------------- diff --git a/server/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/ParsedConfiguration.java b/server/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/ParsedConfiguration.java index fb1e2f2..1af2f6c 100644 --- a/server/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/ParsedConfiguration.java +++ b/server/protocols/fetchmail/src/main/java/org/apache/james/fetchmail/ParsedConfiguration.java @@ -370,9 +370,7 @@ class ParsedConfiguration { setMarkMaxMessageSizeExceededSeen(maxmessagesize.getBoolean("[@markseen]")); } - if (LOGGER.isDebugEnabled()) { - LOGGER.info("Configured FetchMail fetch task " + getFetchTaskName()); - } + LOGGER.info("Configured FetchMail fetch task {}", getFetchTaskName()); } /** --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
