diff options
Diffstat (limited to 'src/BtPortMessage.cc')
| -rw-r--r-- | src/BtPortMessage.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/BtPortMessage.cc b/src/BtPortMessage.cc index b21f6565..bca7b14f 100644 --- a/src/BtPortMessage.cc +++ b/src/BtPortMessage.cc @@ -72,7 +72,9 @@ void BtPortMessage::doReceivedAction() { if(!_taskFactory.isNull() && !_taskQueue.isNull()) { if(_port == 0) { - logger->debug("Ignored port 0."); + if(logger->debug()) { + logger->debug("Ignored port 0."); + } return; } // node id is random at this point. When ping reply received, new DHTNode |
