From 58834c901da02177301ec63b610e5cf7afde00ec Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 17 Apr 2008 09:28:42 +0000 Subject: add few debug messages --- 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) -- cgit v0.9.1