From ff198f32bc308d2a1c756770401522fef0da9fd2 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 6 Dec 2012 16:17:17 -0500 Subject: [PATCH] better --- httpbin/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/httpbin/core.py b/httpbin/core.py index ded8e7e..c37bd34 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -35,6 +35,7 @@ ENV_COOKIES = ( ) app = Flask(__name__) +app.debug = True # Setup error collection sentry = Sentry(app) @@ -49,8 +50,9 @@ metrics = librato.connect( # ------ @app.after_request -def log_metrics(*args, **kwargs): +def log_metrics(r): metrics.add(1) + return r @app.route('/') def view_landing_page():