From 070bb6551d68a40ad4fcdba69d4495e78c20bbdc Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 13 Jul 2017 13:42:00 -0700 Subject: [PATCH] [gateway] improve debug logging format --- disco/gateway/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disco/gateway/client.py b/disco/gateway/client.py index 8ed210f..f0e8869 100644 --- a/disco/gateway/client.py +++ b/disco/gateway/client.py @@ -67,7 +67,7 @@ class GatewayClient(LoggingClass): return self._send(op, data) def _send(self, op, data): - self.log.debug('SEND %s', op) + self.log.debug('GatewayClient.send %s', op) self.packets.emit((SEND, op), data) self.ws.send(self.encoder.encode({ 'op': op.value, @@ -81,7 +81,7 @@ class GatewayClient(LoggingClass): def handle_dispatch(self, packet): obj = GatewayEvent.from_dispatch(self.client, packet) - self.log.debug('Dispatching %s', obj.__class__.__name__) + self.log.debug('GatewayClient.handle_dispatch %s', obj.__class__.__name__) self.client.events.emit(obj.__class__.__name__, obj) if self.replaying: self.replayed_events += 1