Log exception
This commit is contained in:
parent
ebe14fb0cf
commit
abf9566476
1 changed files with 1 additions and 0 deletions
|
@ -222,6 +222,7 @@ public class RuffyScripter {
|
||||||
} catch (CommandException e) {
|
} catch (CommandException e) {
|
||||||
returnable.cmdResult = e.toCommandResult();
|
returnable.cmdResult = e.toCommandResult();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error("Unexpected exception running cmd", e);
|
||||||
returnable.cmdResult = new CommandResult().exception(e).message("Unexpected exception running cmd");
|
returnable.cmdResult = new CommandResult().exception(e).message("Unexpected exception running cmd");
|
||||||
} finally {
|
} finally {
|
||||||
lastCmdExecutionTime = System.currentTimeMillis();
|
lastCmdExecutionTime = System.currentTimeMillis();
|
||||||
|
|
Loading…
Reference in a new issue