mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 06:25:45 +00:00
fixed error messaging and made API not found reports debug information
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
41b965e13b
commit
ef6b8b0480
@ -22,7 +22,7 @@ def make_error(status_code, message=None):
|
||||
request_info = {"method": request.method, "path": request.path}
|
||||
request_info.update(response_content)
|
||||
|
||||
logger.error("HTTP API error: %(status)s - %(method)s:%(path)s - %(message)s", request_info)
|
||||
logger.debug("HTTP API error: %(status)s - %(method)s:%(path)s - %(message)s", request_info)
|
||||
|
||||
response = jsonify(response_content)
|
||||
response.status_code = status_code
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user