fix for ee21e004b33dc39de4cb84b92ff5cd8a12d7c3ed
This commit is contained in:
@@ -357,9 +357,9 @@ class Application(ApplicationPartDelete, ApplicationPartHead,
|
|||||||
logger_method = logger.info # default
|
logger_method = logger.info # default
|
||||||
if status == 401 or status == 404 or status == 412 or status == 409 or request_method in ["PROPPATCH", "MKCALENDAR", "MKCOL"]:
|
if status == 401 or status == 404 or status == 412 or status == 409 or request_method in ["PROPPATCH", "MKCALENDAR", "MKCOL"]:
|
||||||
logger_method = logger.notice
|
logger_method = logger.notice
|
||||||
elif status < 500:
|
elif status >= 500 and status < 500:
|
||||||
logger_method = logger.error
|
logger_method = logger.error
|
||||||
else:
|
elif status >= 500:
|
||||||
logger_method = logger.critical
|
logger_method = logger.critical
|
||||||
logger_method(message)
|
logger_method(message)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user