Merged in bugfix/event_server_traceback (pull request #371)

use logging traceback print instead of traceback module

Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
Jakub Trllo 2019-11-21 19:55:59 +00:00 committed by Milan Kolar
commit c6e7e9fd2b

View file

@ -30,8 +30,7 @@ def main(args):
server.run_server(session)
except Exception as exc:
import traceback
traceback.print_tb(exc.__traceback__)
log.error("Event server crashed. See traceback below", exc_info=True)
finally:
log.debug("First closing socket")