From 32dcc75b080a23076b41becc0641c34d7a8693fb Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 13 May 2013 10:36:21 -0400 Subject: [PATCH] Use path instead of full path for statsd logging (imported from commit 48ddab1ed5b9fd6c6b87a2eb8c5119eb686f23ee) --- zephyr/middleware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/middleware.py b/zephyr/middleware.py index 9f26278ce1..3654079c9b 100644 --- a/zephyr/middleware.py +++ b/zephyr/middleware.py @@ -38,10 +38,10 @@ class LogRequests(object): return "%.0fms" % (timedelta_ms(timedelta),) # For statsd timer name - if request.get_full_path() == '/': + if request.path == '/': statsd_path = 'webreq' else: - statsd_path = "webreq.%s" % (request.get_full_path()[1:].replace('/', '.'),) + statsd_path = "webreq.%s" % (request.path[1:].replace('/', '.'),) # The reverse proxy might have sent us the real external IP