You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by jburwell <gi...@git.apache.org> on 2016/12/02 05:36:10 UTC

[GitHub] cloudstack pull request #873: CLOUDSTACK-8896: allocated percentage of stora...

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.
---