From 5eefe2c916384355b139e339137aeab06451a262 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 8 Nov 2014 21:22:34 +0100 Subject: [PATCH] Log more when using wgi --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 86c5881..c76b8d1 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -872,7 +872,7 @@ def cgi_wrapper(environ, start_response): except Exception as e: headers = {'status': '500 Oops', 'content-type': 'text/plain'} start_response(headers['status'], headers.items(), sys.exc_info()) - log('ERROR: %s' % e.message, force=True) + log('ERROR <%s>: %s' % (url, e.message), force=True) return 'An error happened'