mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 20:13:46 +00:00 
			
		
		
		
	middleware: Fix str/unicode type mismatch in statsd_path.
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user