This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push: new ea57983 [SSHD-1152] Some warnings are never logged ea57983 is described below commit ea57983ca77717f22170db40b3048e005719e4fd Author: Guillaume Nodet <gno...@gmail.com> AuthorDate: Mon Mar 29 13:28:13 2021 +0200 [SSHD-1152] Some warnings are never logged --- .../main/java/org/apache/sshd/common/util/logging/LoggingUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sshd-common/src/main/java/org/apache/sshd/common/util/logging/LoggingUtils.java b/sshd-common/src/main/java/org/apache/sshd/common/util/logging/LoggingUtils.java index 13acb4d..8ca82a8 100644 --- a/sshd-common/src/main/java/org/apache/sshd/common/util/logging/LoggingUtils.java +++ b/sshd-common/src/main/java/org/apache/sshd/common/util/logging/LoggingUtils.java @@ -614,7 +614,7 @@ public final class LoggingUtils { public static void warn(Logger log, String message, Object o1, Object o2, Object o3, Object o4, Throwable t) { if (log.isDebugEnabled() && (t != null)) { log.warn(message, o1, o2, o3, o4, t); - } else if (log.isDebugEnabled()) { + } else { log.warn(message, o1, o2, o3, o4); } } @@ -689,7 +689,7 @@ public final class LoggingUtils { public static void error(Logger log, String message, Object o1, Object o2, Object o3, Object o4, Throwable t) { if (log.isDebugEnabled() && (t != null)) { log.error(message, o1, o2, o3, o4, t); - } else if (log.isDebugEnabled()) { + } else { log.error(message, o1, o2, o3, o4); } }