Log 403 as warning

This commit is contained in:
shortcutme 2019-10-06 03:14:45 +02:00
parent dd493c87fa
commit ead1b3e5f5
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -831,7 +831,7 @@ class UiRequest(object):
# You are not allowed to access this # You are not allowed to access this
def error403(self, message="", details=True): def error403(self, message="", details=True):
self.sendHeader(403, noscript=True) self.sendHeader(403, noscript=True)
self.log.error("Error 403: %s" % message) self.log.warning("Error 403: %s" % message)
return self.formatError("Forbidden", message, details=details) return self.formatError("Forbidden", message, details=details)
# Send file not found error # Send file not found error