From c0f14ca59dab29fe14df720b99017d0f9a8a1627 Mon Sep 17 00:00:00 2001 From: Linas Vepstas <linasvepstas@gmail.com> Date: Sat, 7 Dec 2019 19:09:00 -0600 Subject: [PATCH] Fix duplicated, non-functional log message. Inside the if-statement, the log message will always print zero. Confusingly, its the same message as the one in the loop above it. Make the message distinct. --- src/dht.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dht.cpp b/src/dht.cpp index 312e1512..f7c3de54 100644 --- a/src/dht.cpp +++ b/src/dht.cpp @@ -76,8 +76,9 @@ Dht::shutdown(ShutdownCallback cb) for (auto& str : store) *remaining += maintainStorage(str, true, str_donecb); + DHT_LOG.w("shuting down node: after storage, %u ops", *remaining); + if (!*remaining) { - DHT_LOG.w("shuting down node: %u ops remaining", *remaining); if (cb) cb(); } } -- GitLab