]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind/mgr_module: make mgr log message prefix a bit less verbose
authorSage Weil <sage@redhat.com>
Tue, 25 Feb 2020 22:23:11 +0000 (16:23 -0600)
committerSage Weil <sage@redhat.com>
Thu, 27 Feb 2020 18:05:42 +0000 (12:05 -0600)
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 <sage@redhat.com>
src/pybind/mgr/mgr_module.py

index 6235b67fc7a9c244d57df3487d703a18bbf1b098..e97fd9431dcf1cdb41a98c4b911d2c320b506ce3 100644 (file)
@@ -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):