From 665a2fc86565d3f2598d9edaa419f70f712fe343 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Fri, 22 Jul 2016 18:33:02 +0200 Subject: [PATCH] brother_ql.web: print exceptions to stderr & listen @ public IPs --- brother_ql/web/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brother_ql/web/__init__.py b/brother_ql/web/__init__.py index 6df499b..d459683 100755 --- a/brother_ql/web/__init__.py +++ b/brother_ql/web/__init__.py @@ -153,6 +153,7 @@ def print_text(content=None): del be except Exception as e: return_dict['message'] = str(e) + logger.warning('Exception happened: %s', e) response.status = 500 return return_dict @@ -198,7 +199,7 @@ def main(): sys.stderr.write('Could not find any of the default fonts') sys.exit() - run(host='localhost', port=args.port, debug=args.loglevel==logging.DEBUG) + run(host='', port=args.port, debug=args.loglevel==logging.DEBUG) if __name__ == "__main__": main()