From 0c2f792aa7cc01c7e77132a62663f02cf5d746e4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 15 Jan 2019 08:53:31 -0600 Subject: [PATCH] mon: clean up probe debug output a bit Signed-off-by: Sage Weil --- src/mon/Monitor.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 880b39541e0..793e037bc3d 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1829,7 +1829,8 @@ void Monitor::handle_probe_probe(MonOpRequestRef op) void Monitor::handle_probe_reply(MonOpRequestRef op) { MMonProbe *m = static_cast(op->get_req()); - dout(10) << "handle_probe_reply " << m->get_source_inst() << *m << dendl; + dout(10) << "handle_probe_reply " << m->get_source_inst() + << " " << *m << dendl; dout(10) << " monmap is " << *monmap << dendl; // discover name and addrs during probing or electing states. @@ -1870,8 +1871,10 @@ void Monitor::handle_probe_reply(MonOpRequestRef op) bootstrap(); return; } - } else { + } else if (peer_name.size()) { dout(10) << " peer name is " << peer_name << dendl; + } else { + dout(10) << " peer " << m->get_source_addr() << " not in map" << dendl; } // new initial peer? -- 2.39.5