diff --git a/src/dht.cpp b/src/dht.cpp
index 312e1512ae2a9169871903ce51dd50c6bc292454..f7c3de54c72de0b9966c1675b1109568f3e8bd91 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();
     }
 }