Log more when using wgi

master
pictuga 2014-11-08 21:22:34 +01:00
parent 6f2061ff37
commit 5eefe2c916
1 changed files with 1 additions and 1 deletions

View File

@ -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'