GabrielBrascher commented on a change in pull request #4575: URL: https://github.com/apache/cloudstack/pull/4575#discussion_r662502262
########## File path: server/src/main/java/com/cloud/capacity/CapacityManagerImpl.java ########## @@ -926,8 +926,11 @@ public boolean postStateTransitionEvent(StateMachine2.Transition<State, Event> t State oldState = transition.getCurrentState(); State newState = transition.getToState(); Event event = transition.getEvent(); - s_logger.debug("VM state transitted from :" + oldState + " to " + newState + " with event: " + event + "vm's original host id: " + vm.getLastHostId() + - " new host id: " + vm.getHostId() + " host id before state transition: " + oldHostId); + Host lastHost = _hostDao.findById(vm.getLastHostId()); + Host oldHost = _hostDao.findById(oldHostId); + Host newHost = _hostDao.findById(vm.getHostId()); + s_logger.debug(String.format("VM state transited from [%s] to [%s] with event [%s]. VM's original host: %s, new host: %s, host before state transition: %s", oldState, Review comment: Done! -- 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