Add the request args

This commit is contained in:
Joseph Schorr 2014-01-24 14:25:41 -05:00
parent 98109a28cd
commit aa5f669e69

View file

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