]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonClient: dump initial monmap at debug level 10
authorSage Weil <sage@redhat.com>
Wed, 19 Dec 2018 16:37:15 +0000 (10:37 -0600)
committerSage Weil <sage@redhat.com>
Thu, 3 Jan 2019 17:17:31 +0000 (11:17 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc

index 61a1fcbd2b9f2003fa5d3b7f7268b8998f95bea7..e541e1f1ba7e7e18e4fe6e9a427f05d9f8b778e7 100644 (file)
@@ -73,7 +73,11 @@ MonClient::~MonClient()
 int MonClient::build_initial_monmap()
 {
   ldout(cct, 10) << __func__ << dendl;
-  return monmap.build_initial(cct, false, cerr);
+  int r = monmap.build_initial(cct, false, cerr);
+  ldout(cct,10) << "monmap:\n";
+  monmap.print(*_dout);
+  *_dout << dendl;
+  return r;
 }
 
 int MonClient::get_monmap()