Skip to content
Snippets Groups Projects
Commit 2ec28dcb authored by Adrien Béraud's avatar Adrien Béraud
Browse files

dhtrunner: use configured logger for dropped packets

parent db000a2f
No related branches found
No related tags found
No related merge requests found
...@@ -705,8 +705,8 @@ DhtRunner::loop_() ...@@ -705,8 +705,8 @@ DhtRunner::loop_()
rcv_free.splice(rcv_free.end(), std::move(received_treated)); rcv_free.splice(rcv_free.end(), std::move(received_treated));
} }
if (dropped) if (dropped && logger_)
std::cerr << "Dropped " << dropped << " packets with high delay" << std::endl; logger_->e("[runner %p] Dropped %zu packets with high delay.", this, dropped);
NodeStatus nstatus4 = dht->updateStatus(AF_INET); NodeStatus nstatus4 = dht->updateStatus(AF_INET);
NodeStatus nstatus6 = dht->updateStatus(AF_INET6); NodeStatus nstatus6 = dht->updateStatus(AF_INET6);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment