From d61c47816858e7e1814f4a54ad80e2b0d6816c72 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 27 Jun 2006 12:15:14 -0400 Subject: [PATCH] Add some debug messages --- configure.ac | 2 +- sugar/chat/Chat.py | 2 ++ sugar/chat/GroupChat.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4c4290ca..de1f1e22 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([Sugar],[0.14],[],[sugar]) +AC_INIT([Sugar],[0.15],[],[sugar]) AC_PREREQ([2.59]) diff --git a/sugar/chat/Chat.py b/sugar/chat/Chat.py index 51f24f97..826c4cfa 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 a2a33520..41ee5bd2 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)