mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 11:45:44 +00:00
Print out the data when a bad message is received
This commit is contained in:
parent
8ee7bf9983
commit
1394c52a80
@ -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]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user