Commit 84b6f7d0 authored by Alejandro Alvarez Ayllon's avatar Alejandro Alvarez Ayllon
Browse files

FTS-749: Log 4xx codes as warning

parent fa060a63
......@@ -64,9 +64,12 @@ class RequestLogger(object):
except:
code = 0
if code >= 400:
if code >= 500:
log.error(entry)
self._log_request_details()
elif code >= 400:
log.info(entry)
self._log_request_details()
else:
log.info(entry)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment