summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileAllocationCommand.cc')
-rw-r--r--src/FileAllocationCommand.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc
index c97f676d..48615624 100644
--- a/src/FileAllocationCommand.cc
+++ b/src/FileAllocationCommand.cc
@@ -61,9 +61,11 @@ bool FileAllocationCommand::executeInternal()
}
_fileAllocationEntry->allocateChunk();
if(_fileAllocationEntry->finished()) {
- logger->debug(MSG_ALLOCATION_COMPLETED,
- _timer.difference(),
- util::itos(_requestGroup->getTotalLength(), true).c_str());
+ if(logger->debug()) {
+ logger->debug(MSG_ALLOCATION_COMPLETED,
+ _timer.difference(),
+ util::itos(_requestGroup->getTotalLength(), true).c_str());
+ }
_e->_fileAllocationMan->dropPickedEntry();
std::deque<Command*> commands;