Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/chat
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-06-27 16:15:14 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-06-27 16:15:14 (GMT)
commitd61c47816858e7e1814f4a54ad80e2b0d6816c72 (patch)
treeea36594102bf94004d39a174366d64deb43306c5 /sugar/chat
parenta0397b29dfe07a916fef3004dc6a8314220a7c03 (diff)
Add some debug messages
Diffstat (limited to 'sugar/chat')
-rw-r--r--sugar/chat/Chat.py2
-rw-r--r--sugar/chat/GroupChat.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/sugar/chat/Chat.py b/sugar/chat/Chat.py
index 51f24f9..826c4cf 100644
--- a/sugar/chat/Chat.py
+++ b/sugar/chat/Chat.py
@@ -244,6 +244,8 @@ class Chat(gtk.VBox):
return
if self._stream_writer:
self._stream_writer.write(self.serialize_message(text))
+ else:
+ print 'Cannot send message, there is no stream writer'
owner = PresenceService.get_instance().get_owner()
if owner:
self._insert_rich_message(owner, text)
diff --git a/sugar/chat/GroupChat.py b/sugar/chat/GroupChat.py
index a2a3352..41ee5bd 100644
--- a/sugar/chat/GroupChat.py
+++ b/sugar/chat/GroupChat.py
@@ -16,4 +16,5 @@ class GroupChat(Chat):
self._stream_writer = self._group_stream.new_writer()
def _group_recv_message(self, address, msg):
+ logging.debug('Group chat received from %s message %s' % (address, msg))
self.recv_message(msg)