Permalink
Browse files

swprobe now works with tempurl

  • Loading branch information...
1 parent 2a06a15 commit 62c6f93b7b00a47651f3f943a5baf0cb9ccab95f @spil-jasper spil-jasper committed Aug 24, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 swprobe/__init__.py
  2. +2 −2 swprobe/middleware.py
View
@@ -14,5 +14,5 @@
# limitations under the License.
#
-version_info = (0 , 2, 0)
+version_info = (0 , 2, 1)
version = __version__ = ".".join(map(str, version_info))
View
@@ -86,9 +86,9 @@ def statsd_event(self, env, req):
self.statsd.timing("auth", duration)
else:
# Find out for which account the request was made
- if "REMOTE_USER" in env.keys():
+ try:
swift_account = env["REMOTE_USER"].split(",")[1]
- else:
+ except:
swift_account = "anonymous"
self.statsd.increment("req.%s.%s.%s" %(swift_account, req.method, status_int))
if status_int >= 200 and status_int < 400:

0 comments on commit 62c6f93

Please sign in to comment.