From 5405c08ee831fa6821177f29a64cc56e7cb1eb3a Mon Sep 17 00:00:00 2001 From: Ernesto Puerta Date: Thu, 10 Oct 2019 11:23:40 +0200 Subject: [PATCH] mgr/dashboard: log request uuid Fixes: https://tracker.ceph.com/issues/41990 Signed-off-by: Ernesto Puerta --- src/pybind/mgr/dashboard/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/tools.py b/src/pybind/mgr/dashboard/tools.py index 804564512c24b..942d715026756 100644 --- a/src/pybind/mgr/dashboard/tools.py +++ b/src/pybind/mgr/dashboard/tools.py @@ -123,9 +123,9 @@ class RequestLoggingTool(cherrypy.Tool): req.remote.port, req.method, status, "{0:.3f}s".format(lat), user, length, req.path_info) else: - logger_fn("[%s:%s] [%s] [%s] [%s] [%s] %s", req.remote.ip, + logger_fn("[%s:%s] [%s] [%s] [%s] [%s] [%s] %s", req.remote.ip, req.remote.port, req.method, status, - "{0:.3f}s".format(lat), length, req.path_info) + "{0:.3f}s".format(lat), length, getattr(req, 'unique_id', '-'), req.path_info) # pylint: disable=too-many-instance-attributes -- 2.39.5