Skip to content

Commit

Permalink
mgr/DaemonServer: log pgmap usage to cluster log
Browse files Browse the repository at this point in the history
- change default of mon_cluster_log_file_level to debug
- log to clog->debug()

Fixes: https://tracker.ceph.com/issues/37886
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit f64a69e)

 Conflicts:
	src/common/options.cc
        dropped master .add_service, .add_see_also
  • Loading branch information
neha-ojha authored and vumrao committed Jan 30, 2019
1 parent a8985ec commit 71ea183
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/options.cc
Expand Up @@ -444,7 +444,7 @@ std::vector<Option> get_global_options() {
.set_description(""),

Option("mon_cluster_log_file_level", Option::TYPE_STR, Option::LEVEL_ADVANCED)
.set_default("info")
.set_default("debug")
.set_description(""),

Option("mon_cluster_log_to_graylog", Option::TYPE_STR, Option::LEVEL_ADVANCED)
Expand Down
3 changes: 3 additions & 0 deletions src/mgr/DaemonServer.cc
Expand Up @@ -1464,6 +1464,9 @@ void DaemonServer::send_report()
jf.dump_object("health_checks", m->health_checks);
jf.flush(*_dout);
*_dout << dendl;
if (osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) {
clog->debug() << "pgmap v" << pg_map.version << ": " << pg_map;
}
});
});

Expand Down

0 comments on commit 71ea183

Please sign in to comment.