GutoVeronezi commented on a change in pull request #5165: URL: https://github.com/apache/cloudstack/pull/5165#discussion_r663903003
########## File path: engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java ########## @@ -881,8 +881,9 @@ protected boolean checkWorkItems(final VMInstanceVO vm, final State state) throw } if (state != State.Stopped) { - s_logger.debug("VM " + vm + " is not in a state to be started: " + state); - return null; + String msg = String.format("Cannot start VM: %s in %s state", vm, state); Review comment: `vm` is of type `VMInstanceVO`; This class implements a `toString()` like `VM instance...`, so the final message will be: `Cannot start VM: VM instance...`. We could remove the `VM:` here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org