diff options
author | Rishabh Dave <ridave@redhat.com> | 2023-03-08 20:14:41 +0100 |
---|---|---|
committer | Rishabh Dave <ridave@redhat.com> | 2023-04-11 16:32:05 +0200 |
commit | aacc9fc5c8dc24a866e97db5fac9dff8011be375 (patch) | |
tree | a11ed626c5d778d8d968512456eede353a7b2dde | |
parent | Merge pull request #50207 from rhcs-dashboard/fix-58827-main (diff) | |
download | ceph-aacc9fc5c8dc24a866e97db5fac9dff8011be375.tar.xz ceph-aacc9fc5c8dc24a866e97db5fac9dff8011be375.zip |
mon, osd: set subsystem prefix for logging MonCap and OSDCap
With this patch following is how log entries from MonCap.cc look -
2023-04-10T22:15:25.746+0530 7fa5debf46c0 20 MonCap is_capable service=mon command= read addr v2:192.168.29.90:40719/0 on cap allow *
2023-04-10T22:15:25.746+0530 7fa5debf46c0 20 MonCap allow so far , doing grant allow *
2023-04-10T22:15:25.746+0530 7fa5debf46c0 20 MonCap allow all
And this is how same log entries from MonCap.cc look without this patch -
2023-04-10T22:23:32.214+0530 7f1fb27f46c0 20 is_capable service=mon command= read addr v2:192.168.29.90:40164/0 on cap allow *
2023-04-10T22:23:32.214+0530 7f1fb27f46c0 20 allow so far , doing grant allow *
2023-04-10T22:23:32.214+0530 7f1fb27f46c0 20 allow all
Signed-off-by: Rishabh Dave <ridave@redhat.com>
-rw-r--r-- | src/mon/MonCap.cc | 5 | ||||
-rw-r--r-- | src/osd/OSDCap.cc | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mon/MonCap.cc b/src/mon/MonCap.cc index aa18d123925..f7af40de12c 100644 --- a/src/mon/MonCap.cc +++ b/src/mon/MonCap.cc @@ -32,6 +32,11 @@ #include "include/ceph_assert.h" +#define dout_subsys ceph_subsys_mon + +#undef dout_prefix +#define dout_prefix *_dout << "MonCap " + using std::list; using std::map; using std::ostream; diff --git a/src/osd/OSDCap.cc b/src/osd/OSDCap.cc index f847e80e337..1cec8b62002 100644 --- a/src/osd/OSDCap.cc +++ b/src/osd/OSDCap.cc @@ -23,6 +23,11 @@ #include "common/debug.h" #include "include/ipaddr.h" +#define dout_subsys ceph_subsys_osd + +#undef dout_prefix +#define dout_prefix *_dout << "OSDCap " + using std::ostream; using std::string; using std::vector; |