From: Ricardo Dias Date: Wed, 25 Sep 2019 14:20:52 +0000 (+0100) Subject: mgr/dashboard: logging: also log 403 accesses with warning X-Git-Tag: v15.1.0~694^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=baf14d8797f8241ad2b83a07a9b87c7af48d766a;p=ceph.git mgr/dashboard: logging: also log 403 accesses with warning Signed-off-by: Ricardo Dias --- diff --git a/src/pybind/mgr/dashboard/tools.py b/src/pybind/mgr/dashboard/tools.py index 14bac9e0aea..1d7a46d86b5 100644 --- a/src/pybind/mgr/dashboard/tools.py +++ b/src/pybind/mgr/dashboard/tools.py @@ -81,7 +81,7 @@ class RequestLoggingTool(cherrypy.Tool): def request_end(self): status = cherrypy.response.status[:3] - if status in ["401"]: + if status in ["401", "403"]: # log unauthorized accesses self._request_log(self.logger.warning) else: