Enable traceback debugging in the PS
This commit is contained in:
parent
6d7782654c
commit
3b8dbb0836
@ -696,13 +696,19 @@ class PresenceService(object):
|
|||||||
if stype in self._registered_service_types:
|
if stype in self._registered_service_types:
|
||||||
self._registered_service_types.remove(stype)
|
self._registered_service_types.remove(stype)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
from sugar import TracebackUtils
|
||||||
loop = gobject.MainLoop()
|
loop = gobject.MainLoop()
|
||||||
ps = PresenceService()
|
ps = PresenceService()
|
||||||
|
tbh = TracebackUtils.TracebackHelper()
|
||||||
try:
|
try:
|
||||||
loop.run()
|
loop.run()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print 'Ctrl+C pressed, exiting...'
|
print 'Ctrl+C pressed, exiting...'
|
||||||
|
|
||||||
|
del tbh
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user