GutoVeronezi commented on a change in pull request #4575:
URL: https://github.com/apache/cloudstack/pull/4575#discussion_r662507006



##########
File path: server/src/main/java/com/cloud/resource/ResourceManagerImpl.java
##########
@@ -2451,11 +2452,11 @@ public HostVO fillRoutingHostVO(final HostVO host, 
final StartupRoutingCommand s
     @Override
     public void deleteRoutingHost(final HostVO host, final boolean isForced, 
final boolean forceDestroyStorage) throws UnableDeleteHostException {
         if (host.getType() != Host.Type.Routing) {
-            throw new CloudRuntimeException("Non-Routing host gets in 
deleteRoutingHost, id is " + host.getId());
+            throw new CloudRuntimeException(String.format("Non-Routing host 
gets in deleteRoutingHost, id is %s", host.getId()));
         }
 
         if (s_logger.isDebugEnabled()) {
-            s_logger.debug("Deleting Host: " + host.getId() + " Guid:" + 
host.getGuid());
+            s_logger.debug(String.format("Deleting Host: %s", host));

Review comment:
       Similar to VM's `toString` would occur 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to