File controller service-time stats under the "web" key.

This commit is contained in:
Logan Hanks
2011-11-08 16:16:04 -07:00
parent e6274eea7f
commit 47502c3384

View File

@@ -655,8 +655,8 @@ class MinimalController(BaseController):
g.reset_caches()
# push data to statsd
g.stats.transact(action, (end_time - c.start_time).total_seconds())
g.stats.transact('web.%s' % action,
(end_time - c.start_time).total_seconds())
def abort404(self):
abort(404, "not found")