aboutsummaryrefslogtreecommitdiff
path: root/src/torcontrol.cpp
diff options
context:
space:
mode:
authorDaniel Cousens <github@dcousens.com>2015-11-17 12:10:28 +1100
committerDaniel Cousens <github@dcousens.com>2015-11-30 22:20:43 +1100
commit4531fc4272dec4b10c4ed3b21bd90e961b1bf1c3 (patch)
tree2835146937a5ea8bbff5693e2d27f56d698c9358 /src/torcontrol.cpp
parenta7751824ce8a7e1cc5511794516fe674bc3eaa3c (diff)
torcontrol: only output disconnect if -debug=tor
Diffstat (limited to 'src/torcontrol.cpp')
-rw-r--r--src/torcontrol.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp
index 31a2917203..8eccc81e30 100644
--- a/src/torcontrol.cpp
+++ b/src/torcontrol.cpp
@@ -617,7 +617,9 @@ void TorController::disconnected_cb(TorControlConnection& conn)
service = CService();
if (!reconnect)
return;
- LogPrintf("tor: Disconnected from Tor control port %s, trying to reconnect\n", target);
+
+ LogPrint("tor", "tor: Disconnected from Tor control port %s, trying to reconnect\n", target);
+
// Single-shot timer for reconnect. Use exponential backoff.
struct timeval time = MillisToTimeval(int64_t(reconnect_timeout * 1000.0));
reconnect_ev = event_new(base, -1, 0, reconnect_cb, this);