increase xmpppy verbosity when we use -l gajim=DEBUG

This commit is contained in:
Yann Leboulanger 2008-06-26 10:01:12 +00:00
parent 2c83acb614
commit 371a38c91c
1 changed files with 6 additions and 2 deletions

View File

@ -525,8 +525,12 @@ class Connection(ConnectionHandlers):
self.last_connection = None
self.connection = None
if gajim.verbose:
con = common.xmpp.NonBlockingClient(self._hostname, caller = self,
on_connect = self.on_connect_success,
if log.getEffectiveLevel() == logging.DEBUG:
d = ['always']
else:
d = ['always', 'nodebuilder']
con = common.xmpp.NonBlockingClient(self._hostname, debug = d,
caller = self, on_connect = self.on_connect_success,
on_proxy_failure = self.on_proxy_failure,
on_connect_failure = self.connect_to_next_type)
else: