From 58bd655f1d372a6d76f468595bc41b75e8fe1084 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 12 Sep 2015 12:13:42 +0900 Subject: [PATCH] In debug mode, show every queued request --- lib/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/network.py b/lib/network.py index 9d9fe04db..883783640 100644 --- a/lib/network.py +++ b/lib/network.py @@ -259,6 +259,8 @@ class Network(util.DaemonThread): interface = self.interface message_id = self.message_id self.message_id += 1 + if self.debug: + self.print_error(interface.host, "-->", method, params, message_id) interface.queue_request(method, params, message_id) return message_id @@ -551,8 +553,6 @@ class Network(util.DaemonThread): self.subscriptions[callback].append(sub) for method, params in messages: - if self.debug: - self.print_error("-->", request) message_id = self.queue_request(method, params) self.unanswered_requests[message_id] = method, params, callback