RuffyScripter: log command execution time.

This commit is contained in:
Johannes Mockenhaupt 2017-07-18 00:15:49 +02:00
parent 7dda253b88
commit e52c2a857c
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -215,7 +215,10 @@ public class RuffyScripter {
return;
}
log.debug("Cmd execution: connection ready, executing cmd " + cmd);
long cmdStartTime = System.currentTimeMillis();
returnable.cmdResult = cmd.execute(scripter);
long cmdEndTime = System.currentTimeMillis();
log.debug("Executing " + cmd + " took " + (cmdEndTime - cmdStartTime) + "ms");
} catch (CommandException e) {
returnable.cmdResult = e.toCommandResult();
} catch (Exception e) {