Add the request args
This commit is contained in:
parent
98109a28cd
commit
aa5f669e69
1 changed files with 5 additions and 1 deletions
|
@ -50,7 +50,11 @@ def abort(status_code, message=None, **kwargs):
|
|||
message = message + 'Current token: ' + auth_token
|
||||
|
||||
message = message % kwargs if message else DEFAULT_MESSAGE[status_code]
|
||||
log.error('Error %s: %s' % (status_code, message))
|
||||
|
||||
# Log the abort.
|
||||
log.error('Error %s: %s. Arguments: %s' % (status_code, message, request.view_args))
|
||||
|
||||
# Report the abort to the user.
|
||||
flask_abort(make_response(HTTPException(message), status_code, headers))
|
||||
|
||||
|
||||
|
|
Reference in a new issue