Repository: mina-sshd
Updated Branches:
  refs/heads/master c743218a7 -> 95ea8a314


[SSHD-706] AbstractSession#checkForTimeouts should issue the DEBUG message only 
if DEBUG level enabled


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/95ea8a31
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/95ea8a31
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/95ea8a31

Branch: refs/heads/master
Commit: 95ea8a3143652aea370b759cb3616c48948c9ced
Parents: c743218
Author: David Ostrovsky <da...@ostrovsky.org>
Authored: Sun Oct 30 18:48:51 2016 +0200
Committer: Lyor Goldstein <lyor.goldst...@gmail.com>
Committed: Sun Oct 30 18:48:51 2016 +0200

----------------------------------------------------------------------
 .../apache/sshd/common/session/helpers/AbstractSession.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/95ea8a31/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java
----------------------------------------------------------------------
diff --git 
a/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java
 
b/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java
index 72acbc3..89263eb 100644
--- 
a/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java
+++ 
b/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java
@@ -2365,8 +2365,10 @@ public abstract class AbstractSession extends 
AbstractKexFactoryManager implemen
      */
     protected void checkForTimeouts() throws IOException {
         if (isClosing()) {
-            log.debug("checkForTimeouts({}) session closing", this);
-            return;
+            if (log.isDebugEnabled()) {
+                log.debug("checkForTimeouts({}) session closing", this);
+                return;
+            }
         }
 
         long now = System.currentTimeMillis();

Reply via email to