Skip to content
Permalink
Browse files

dht: disable some verbose logs

  • Loading branch information...
aberaud committed Mar 10, 2019
1 parent cdb721a commit 313f54c8401120f986a94ac68e26d85f6b0fbf33
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/dht.cpp
  2. +1 −1 src/network_engine.cpp
@@ -1850,8 +1850,8 @@ Dht::bucketMaintenance(RoutingTable& list)
network_engine.sendFindNode(n, id, want, nullptr, [this,start,n](const net::Request&, bool over) {
if (over) {
const auto& end = scheduler.time();
using namespace std::chrono;
DHT_LOG.d(n->id, "[node %s] bucket maintenance op expired after %llu ms", n->toString().c_str(), duration_cast<milliseconds>(end-start).count());
// using namespace std::chrono;
// DHT_LOG.d(n->id, "[node %s] bucket maintenance op expired after %llu ms", n->toString().c_str(), duration_cast<milliseconds>(end-start).count());
scheduler.edit(nextNodesConfirmation, end + Node::MAX_RESPONSE_TIME);
}
});
@@ -907,7 +907,7 @@ NetworkEngine::packValueHeader(msgpack::sbuffer& buffer, const std::vector<Sp<Va
if (svals.size() < 50 && total_size < MAX_PACKET_VALUE_SIZE) {
for (const auto& b : svals)
buffer.write((const char*)b.data(), b.size());
DHT_LOG.d("sending %lu bytes of values", total_size);
// DHT_LOG.d("sending %lu bytes of values", total_size);
svals.clear();
} else {
for (const auto& b : svals)

0 comments on commit 313f54c

Please sign in to comment.
You can’t perform that action at this time.