From 306f2a09be69489e6afebe1d0bef9be511ebb34f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 25 Feb 2020 16:23:11 -0600 Subject: [PATCH] pybind/mgr_module: make mgr log message prefix a bit less verbose 2020-02-25T16:22:48.484-0600 7f664dcec700 0 [cephadm DEBUG root] code: 0 instead of 2020-02-25T16:19:48.359-0600 7f0c0d776700 0 [cephadm] [DEBUG] [root] code: 0 Signed-off-by: Sage Weil --- src/pybind/mgr/mgr_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 6235b67fc7a..e97fd9431dc 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -413,7 +413,7 @@ class CPlusPlusHandler(logging.Handler): def __init__(self, module_inst): super(CPlusPlusHandler, self).__init__() self._module = module_inst - self.setFormatter(logging.Formatter("[{}] [%(levelname)-4s] [%(name)s] %(message)s" + self.setFormatter(logging.Formatter("[{} %(levelname)-4s %(name)s] %(message)s" .format(module_inst.module_name))) def emit(self, record): -- 2.39.5