1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 18:29:02 +01:00

Add logger for debugging invalid methods

This commit is contained in:
jokajak 2016-04-24 12:18:59 -04:00
parent e4e4de7c1d
commit a794e5ea06

View File

@ -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)