better debug print
This commit is contained in:
parent
30352695b2
commit
b4c4d2b26b
|
@ -666,7 +666,9 @@ class Connection:
|
||||||
self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name,
|
self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name,
|
||||||
_('Check your connection or try again later')))
|
_('Check your connection or try again later')))
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
|
gajim.log.debug('Connected to server with %s', con_type)
|
||||||
|
|
||||||
self.dispatch('CON_TYPE', con_type) # notify the gui about con_type
|
self.dispatch('CON_TYPE', con_type) # notify the gui about con_type
|
||||||
|
|
||||||
con.RegisterHandler('message', self._messageCB)
|
con.RegisterHandler('message', self._messageCB)
|
||||||
|
@ -699,8 +701,6 @@ class Connection:
|
||||||
con.RegisterHandler('message', self._StanzaArrivedCB)
|
con.RegisterHandler('message', self._StanzaArrivedCB)
|
||||||
con.RegisterEventHandler(self._event_dispatcher)
|
con.RegisterEventHandler(self._event_dispatcher)
|
||||||
|
|
||||||
gajim.log.debug('Connected to server')
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
#FIXME: blocking
|
#FIXME: blocking
|
||||||
auth = con.auth(name, self.password, resource, 1)
|
auth = con.auth(name, self.password, resource, 1)
|
||||||
|
|
Loading…
Reference in New Issue