diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2008-04-17 09:28:42 (GMT) |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2008-04-17 09:28:42 (GMT) |
commit | 58834c901da02177301ec63b610e5cf7afde00ec (patch) | |
tree | 2881b23e7cd25c0a81ec8b0915ad48d93a41696b | |
parent | 3260961e709ce577a16e468f0a722087eacaa0fb (diff) |
add few debug messages
-rw-r--r-- | src/telepathy_plugin.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/telepathy_plugin.py b/src/telepathy_plugin.py index b4581d8..737023b 100644 --- a/src/telepathy_plugin.py +++ b/src/telepathy_plugin.py @@ -179,6 +179,7 @@ class TelepathyPlugin(gobject.GObject): """Attempt to reconnect to the server after the back-off time has elapsed. """ + _logger.debug("%r: reconnect timed out. Let's try to connect", self) if self._backoff_id > 0: gobject.source_remove(self._backoff_id) self._backoff_id = 0 @@ -209,9 +210,13 @@ class TelepathyPlugin(gobject.GObject): if there is an existing connection, reuse it by registering for various of events on it. """ + _logger.debug('%r: init connection', self) conn = self._find_existing_connection() if not conn: + _logger.debug('%r: no existing connection. Create a new one', self) conn = self._make_new_connection() + else: + _logger.debug('%r: found existing connection. Reuse it', self) m = conn[CONN_INTERFACE].connect_to_signal('StatusChanged', self._handle_connection_status_change) |