Skip to content

Commit

Permalink
Output stacktrace with debug enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbartel committed Jan 24, 2023
1 parent 1808765 commit c0a8d43
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ private String send(String command, int wait)
}
catch (Exception e)
{
getLog().info("Error after sending command: " + command + ". Check the server state.", e);
if (getLog().isDebugEnabled())
getLog().error("Error after sending command: " + command + ". Check the server state.", e);
else
getLog().info("Error after sending command: " + command + ". Check the server state.");
}
}

Expand Down

0 comments on commit c0a8d43

Please sign in to comment.