Log 403 error as error

This commit is contained in:
shortcutme 2018-03-20 21:55:45 +01:00
parent 11d8485399
commit d275dfea2f
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

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