diff options
Diffstat (limited to 'lib/bb/ui/toasterui.py')
-rw-r--r-- | lib/bb/ui/toasterui.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py index 9bd04df1c..3a6104bca 100644 --- a/lib/bb/ui/toasterui.py +++ b/lib/bb/ui/toasterui.py @@ -296,10 +296,9 @@ def main(server, eventHandler, params ): pass except Exception as e: # print errors to log - logger.error(e) import traceback exception_data = traceback.format_exc() - print(exception_data) + logger.error("%s\n%s" % (e, exception_data)) # save them to database, if possible; if it fails, we already logged to console. try: |