]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add thread ident to log messages 43133/head
authorMichael Fritch <mfritch@suse.com>
Mon, 30 Aug 2021 15:18:15 +0000 (09:18 -0600)
committerMichael Fritch <mfritch@suse.com>
Fri, 10 Sep 2021 13:39:28 +0000 (07:39 -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>
(cherry picked from commit 2f1482890bad99cf29623585c6e4f8abf15cecc5)

src/cephadm/cephadm

index 9b7348b8bc29c5881c05511b478ebcca728818a5..2cdf9c595a147e5c65982f7c1ef4f0cd73a85575 100755 (executable)
@@ -103,7 +103,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': {