From 79011d0c4a05353572a74e6ab743e4eb617c5d66 Mon Sep 17 00:00:00 2001 From: Wolfgang Schnerring Date: Wed, 8 Jul 2015 10:18:26 +0200 Subject: [PATCH] Include request URL in error message. Fixes #1061. --- THANKS | 1 + gunicorn/workers/base.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/THANKS b/THANKS index d32d1bbf..6fb97720 100644 --- a/THANKS +++ b/THANKS @@ -158,3 +158,4 @@ Kyle Mulka Marc Abramowitz Hebert J Kevin Littlejohn +Wolfgang Schnerring diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py index 0b8cc115..9ba8e756 100644 --- a/gunicorn/workers/base.py +++ b/gunicorn/workers/base.py @@ -210,7 +210,7 @@ class Worker(object): msg = "Invalid request from ip={ip}: {error}" self.log.debug(msg.format(ip=addr[0], error=str(exc))) else: - self.log.exception("Error handling request") + self.log.exception("Error handling request %s", req.uri) status_int = 500 reason = "Internal Server Error"