middleware: Fix str/unicode type mismatch in statsd_path.

This commit is contained in:
Tim Abbott 2016-01-25 18:07:01 -08:00
parent 2436ad19ba
commit 10f15a2d00
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ def write_log_line(log_data, path, method, remote_ip, email, client_name,
# For statsd timer name
if path == '/':
statsd_path = 'webreq'
statsd_path = u'webreq'
else:
statsd_path = u"webreq.%s" % (path[1:].replace('/', '.'),)
# Remove non-ascii chars from path (there should be none, if there are it's