]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add thread ident to log messages
authorMichael Fritch <mfritch@suse.com>
Mon, 30 Aug 2021 15:18:15 +0000 (09:18 -0600)
committerMichael Fritch <mfritch@suse.com>
Wed, 1 Sep 2021 14:15:04 +0000 (08:15 -0600)
can be used to filter msgs from a specific cephadm command

Fixes: https://tracker.ceph.com/issues/52484
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index 08965051c44111014547e28b6a0c8f0983e7b0c7..971141b16b9adb704455ee199a2e9925c2c3dfb6 100755 (executable)
@@ -208,7 +208,7 @@ logging_config = {
     'disable_existing_loggers': True,
     'formatters': {
         'cephadm': {
-            'format': '%(asctime)s %(levelname)s %(message)s'
+            'format': '%(asctime)s %(thread)x %(levelname)s %(message)s'
         },
     },
     'handlers': {