A small assert because I'm annoyed with leaking states
[theonering] / src / channel_manager.py
index 29549de..1f01726 100644 (file)
@@ -24,7 +24,7 @@ class TelepathyChannelManager(object):
                for channel_type in self._requestable_channel_classes:
                        for chan in self._channels[channel_type].values():
                                try:
-                                       _moduleLogger.info("Closing %s %s" % (channel_type, chan._object_path))
+                                       _moduleLogger.debug("Closing %s %s" % (channel_type, chan._object_path))
                                        chan.Close()
                                except Exception:
                                        _moduleLogger.exception("Shutting down %r" % (chan, ))
@@ -147,7 +147,6 @@ class ChannelManager(TelepathyChannelManager):
                        chan = channel.debug_prompt.DebugPromptChannel(self._conn, self, props, h)
                else:
                        _moduleLogger.debug('New text channel')
-                       _moduleLogger.info('%r %r' % (accountNumber, h.phoneNumber))
                        chan = channel.text.TextChannel(self._conn, self, props, h)
                return chan