when an error occure while Process()ing xmpp, we print the TB so it's easier to debug
This commit is contained in:
parent
80144824b0
commit
686a9a0bd9
1 changed files with 5 additions and 4 deletions
|
@ -21,6 +21,7 @@ import sys
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import sre
|
import sre
|
||||||
|
import traceback
|
||||||
from calendar import timegm
|
from calendar import timegm
|
||||||
|
|
||||||
import common.xmpp
|
import common.xmpp
|
||||||
|
@ -960,14 +961,14 @@ class Connection:
|
||||||
try:
|
try:
|
||||||
self.connection.Process(timeout)
|
self.connection.Process(timeout)
|
||||||
except:
|
except:
|
||||||
gajim.log.debug('error appeared while processing xmpp: ' + \
|
gajim.log.debug('error appeared while processing xmpp:')
|
||||||
str(sys.exc_info()[1]))
|
traceback.print_exc()
|
||||||
self.connected = 0
|
self.connected = 0
|
||||||
self.dispatch('STATUS', 'offline')
|
self.dispatch('STATUS', 'offline')
|
||||||
try:
|
try:
|
||||||
self.connection.disconnect()
|
self.connection.disconnect()
|
||||||
except:
|
except:
|
||||||
gajim.log.debug('error appeared while processing xmpp: ' + \
|
gajim.log.debug('error appeared while processing xmpp:')
|
||||||
str(sys.exc_info()[1]))
|
traceback.print_exc()
|
||||||
self.connection = None
|
self.connection = None
|
||||||
# END GajimCore
|
# END GajimCore
|
||||||
|
|
Loading…
Add table
Reference in a new issue