diff options
Diffstat (limited to 'src/IteratableChunkChecksumValidator.cc')
| -rw-r--r-- | src/IteratableChunkChecksumValidator.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/IteratableChunkChecksumValidator.cc b/src/IteratableChunkChecksumValidator.cc index a700767d..c5678d29 100644 --- a/src/IteratableChunkChecksumValidator.cc +++ b/src/IteratableChunkChecksumValidator.cc @@ -94,7 +94,11 @@ void IteratableChunkChecksumValidator::validateChunk() _bitfield->unsetBit(_currentIndex); } } catch(RecoverableException& ex) { - _logger->debug("Caught exception while validating piece index=%d. Some part of file may be missing. Continue operation.", ex, _currentIndex); + if(_logger->debug()) { + _logger->debug("Caught exception while validating piece index=%d." + " Some part of file may be missing. Continue operation.", + ex, _currentIndex); + } _bitfield->unsetBit(_currentIndex); } |
