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:
parent
e4e4de7c1d
commit
a794e5ea06
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user