From a794e5ea061a12e4b5543aff29011c1b2c627e44 Mon Sep 17 00:00:00 2001 From: jokajak Date: Sun, 24 Apr 2016 12:18:59 -0400 Subject: [PATCH] Add logger for debugging invalid methods --- backend/flask/src/clipperz/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/flask/src/clipperz/views.py b/backend/flask/src/clipperz/views.py index e57fbed..79fbaea 100644 --- a/backend/flask/src/clipperz/views.py +++ b/backend/flask/src/clipperz/views.py @@ -140,8 +140,9 @@ def pm(): """Main request handler.""" method = request.form['method'] if method not in globals(): + app.logger.error(method) raise InvalidUsage('This method is not yet implemented', status_code=501) - handler = globals()[method]() app.logger.debug(method) + handler = globals()[method]() return handler.handle_request(request)