cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jburwell <...@git.apache.org>
Subject [GitHub] cloudstack pull request #873: CLOUDSTACK-8896: allocated percentage of stora...
Date Fri, 02 Dec 2016 05:36:10 GMT
Github user jburwell commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/873#discussion_r90589284
  
    --- Diff: server/src/com/cloud/storage/StorageManagerImpl.java ---
    @@ -1719,6 +1719,7 @@ public boolean storagePoolHasEnoughSpace(List<Volume> volumes,
StoragePool pool,
             }
     
             // allocated space includes templates
    +        s_logger.debug("Destination pool id: " + pool.getId());
    --- End diff --
    
    Please wrap this `DEBUG` log in an `if (s_logger.isDebugEnabled)` check to prevent unnecessary/expensive
string concatenation when `DEBUG` logging is not enabled.  Also, please add context to message
to explain what operation is being performed for the destination pool.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message