we were using debug logging without checking ifDebugEnabled(), fixing that

This commit is contained in:
abhishek 2010-11-11 17:20:31 -08:00
parent fcd7f37839
commit e79e432807

View File

@ -1496,7 +1496,8 @@ public class StorageManagerImpl implements StorageManager {
StoragePoolVO lock = _storagePoolDao.acquireInLockTable(sPool.getId());
try {
if (lock == null) {
s_logger.debug("Failed to acquire lock when deleting StoragePool with ID: " + sPool.getId());
if(s_logger.isDebugEnabled())
s_logger.debug("Failed to acquire lock when deleting StoragePool with ID: " + sPool.getId());
return false;
}