Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mostly cosmetical fixes

  • Loading branch information...
commit 43b01fef5150bff4fdb10faba343bec8b9ef55a9 1 parent 6fef34b
@Ratler authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 src/main/java/org/unitedid/yhsm/internal/CommandHandler.java
View
10 src/main/java/org/unitedid/yhsm/internal/CommandHandler.java
@@ -52,9 +52,9 @@ private CommandHandler() {}
try {
int timeout = (int) device.getTimeout() * 1000; // Need milliseconds
int sleptTime = 0;
- if (log.isDebugEnabled()) {
- log.debug("CommandHandler (" + Defines.getCommandString(command) + ") timeout set to: " + timeout);
- }
+
+ log.debug("CommandHandler (" + Defines.getCommandString(command) + ") timeout set to: " + timeout);
+
while (sleptTime <= timeout) {
Thread.sleep(1);
sleptTime += 1;
@@ -62,9 +62,7 @@ private CommandHandler() {}
break;
}
}
- if (log.isDebugEnabled()) {
- log.debug("CommandHandler slept for: " + sleptTime + " ms");
- }
+ log.debug("CommandHandler slept for: " + sleptTime + " ms");
} catch (InterruptedException e) {
e.printStackTrace();
}
Please sign in to comment.
Something went wrong with that request. Please try again.