From 1394c52a80f289145c65cdff60dfd0b824fc7601 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 9 Feb 2009 00:43:11 +0000 Subject: [PATCH] Print out the data when a bad message is received --- deluge/ui/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/client.py b/deluge/ui/client.py index 628ebb384..e18a50c55 100644 --- a/deluge/ui/client.py +++ b/deluge/ui/client.py @@ -127,7 +127,7 @@ class DelugeRPCProtocol(Protocol): try: request = rencode.loads(dobj.decompress(data)) except Exception, e: - log.debug("Received possible invalid message: %s", e) + log.debug("Received possible invalid message (%r): %s", data, e) # This could be cut-off data, so we'll save this in the buffer # and try to prepend it on the next dataReceived() self.__buffer = data @@ -146,7 +146,7 @@ class DelugeRPCProtocol(Protocol): if message_type == RPC_EVENT: event = request[1] - # A RPCSignal was received from the daemon so run any handlers + # A RPCEvent was received from the daemon so run any handlers # associated with it. if event in self.factory.event_handlers: for handler in self.factory.event_handlers[event]: