From 1f836cae67af0d1a2987a22ee83b71425a9b2b5b Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 19 Sep 2006 17:58:29 +0000 Subject: [PATCH] debug xml data --- src/common/zeroconf/client_zeroconf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/zeroconf/client_zeroconf.py b/src/common/zeroconf/client_zeroconf.py index 9a72d0a38..93784f608 100644 --- a/src/common/zeroconf/client_zeroconf.py +++ b/src/common/zeroconf/client_zeroconf.py @@ -292,6 +292,8 @@ class P2PConnection(IdleObject, PlugIn): if self.state < 0: return if self.on_receive: + if received.strip(): + self.DEBUG(received, 'got') if hasattr(self._owner, 'Dispatcher'): self._owner.Dispatcher.Event('', DATA_RECEIVED, received) self.on_receive(received) @@ -372,7 +374,7 @@ class P2PConnection(IdleObject, PlugIn): def _on_send(self): if self.sent_data and self.sent_data.strip(): - #~ self.DEBUG(self.sent_data,'sent') + self.DEBUG(self.sent_data,'sent') if hasattr(self._owner, 'Dispatcher'): self._owner.Dispatcher.Event('', DATA_SENT, self.sent_data) self.sent_data = None