fix for ee21e004b33dc39de4cb84b92ff5cd8a12d7c3ed

This commit is contained in:
Peter Bieringer
2026-04-21 21:25:53 +02:00
parent a10649d2ba
commit c44ac6bae5

View File

@@ -357,9 +357,9 @@ class Application(ApplicationPartDelete, ApplicationPartHead,
logger_method = logger.info # default
if status == 401 or status == 404 or status == 412 or status == 409 or request_method in ["PROPPATCH", "MKCALENDAR", "MKCOL"]:
logger_method = logger.notice
elif status < 500:
elif status >= 500 and status < 500:
logger_method = logger.error
else:
elif status >= 500:
logger_method = logger.critical
logger_method(message)