]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MgrMonitor: improve a log message
authorRishabh Dave <ridave@redhat.com>
Wed, 17 Jul 2024 12:35:33 +0000 (18:05 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 8 Apr 2025 20:00:38 +0000 (01:30 +0530)
commit80486871eb95a24cd8a5d4926e40137d11fd03e4
treee1554d0e89272ea02538448c6220635b669574d2
parent1cf15acbc2dc15f156b7625d0a40b67c2ed30701
mon/MgrMonitor: improve a log message

Following log message has 3 distinct information (enabled modules,
modules that are alwats on and total number of commands enabled) printed
on the same line which makes it hard to find one of the information and
also makes it comparatively hard to read -

2024-07-17T17:21:16.609+0530 7f534ae006c0  0 mon.a@0(leader).mgr e0 create_initial initial modules iostat,nfs,volumes, always on modules balancer,crash,devicehealth,orchestrator,pg_autoscaler,progress,status,telemetry, 50 commands

With this commit it would be easier to read and find needed info -

2024-07-17T17:21:16.609+0530 7f534ae006c0  0 mon.a@0(leader).mgr e0 create_initial initial modules: iostat,nfs,volumes
2024-07-17T17:21:16.609+0530 7f534ae006c0  0 mon.a@0(leader).mgr e0 create_initial always on modules: balancer,crash,devicehealth,orchestrator,pg_autoscaler,progress,status,telemetry
2024-07-17T17:21:16.609+0530 7f534ae006c0  0 mon.a@0(leader).mgr e0 create_initial 50 commands

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit e830f89240e382fdf5da676437ff783c4ea6ae42)
src/mgr/PyModuleRegistry.cc
src/mon/MgrMonitor.cc