summaryrefslogtreecommitdiff
path: root/src/CreateRequestCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CreateRequestCommand.cc')
-rw-r--r--src/CreateRequestCommand.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CreateRequestCommand.cc b/src/CreateRequestCommand.cc
index bfcec970..b41189d9 100644
--- a/src/CreateRequestCommand.cc
+++ b/src/CreateRequestCommand.cc
@@ -111,7 +111,9 @@ bool CreateRequestCommand::prepareForRetry(time_t wait)
if(!_requestGroup->getPieceStorage().isNull()) {
_requestGroup->getSegmentMan()->cancelSegment(cuid);
}
- logger->debug("CUID#%d - Reusing CreateRequestCommand", cuid);
+ if(logger->debug()) {
+ logger->debug("CUID#%d - Reusing CreateRequestCommand", cuid);
+ }
SleepCommand* scom = new SleepCommand(cuid, e, _requestGroup, this, wait);
e->commands.push_back(scom);
return false;