add some debug info
This commit is contained in:
parent
e8069e56ad
commit
c0261e481a
1 changed files with 6 additions and 3 deletions
|
@ -1542,20 +1542,23 @@ class Connection:
|
||||||
con_type = None
|
con_type = None
|
||||||
while len(hosts) and not con_type:
|
while len(hosts) and not con_type:
|
||||||
host = self.select_next_host(hosts)
|
host = self.select_next_host(hosts)
|
||||||
|
hosts.remove(host)
|
||||||
con_type = con.connect((host['host'], host['port']), proxy = proxy,
|
con_type = con.connect((host['host'], host['port']), proxy = proxy,
|
||||||
secure = secur)
|
secure = secur)
|
||||||
if not self.connected: # We went offline during connecting process
|
if not self.connected: # We went offline during connecting process
|
||||||
return None, ''
|
return None, ''
|
||||||
hosts.remove(host)
|
if not con_type:
|
||||||
|
gajim.log.debug('Could not connect to %s:%s' % (host['host'],
|
||||||
|
host['port']))
|
||||||
if not con_type:
|
if not con_type:
|
||||||
gajim.log.debug('Could not connect to %s' % h)
|
|
||||||
if not self.retrycount:
|
if not self.retrycount:
|
||||||
self.connected = 0
|
self.connected = 0
|
||||||
self.dispatch('STATUS', 'offline')
|
self.dispatch('STATUS', 'offline')
|
||||||
self.dispatch('ERROR', (_('Could not connect to "%s"') % h,
|
self.dispatch('ERROR', (_('Could not connect to "%s"') % h,
|
||||||
_('Check your connection or try again later.')))
|
_('Check your connection or try again later.')))
|
||||||
return None, ''
|
return None, ''
|
||||||
gajim.log.debug(_('Connected to server with %s') % con_type)
|
gajim.log.debug(_('Connected to server %s:%s with %s') % (host['host'],
|
||||||
|
host['port'], con_type)
|
||||||
return con, con_type
|
return con, con_type
|
||||||
|
|
||||||
def connect_and_auth(self):
|
def connect_and_auth(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue