mgrc: less vebose logging of messages

...no need to tell us about all the things you're *not* handling.

Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2016-08-08 17:08:42 +01:00
parent 7b8179bd5d
commit 8db0137dc3

View File

@ -59,7 +59,6 @@ bool MgrClient::ms_dispatch(Message *m)
{
Mutex::Locker l(lock);
ldout(cct, 20) << *m << dendl;
switch(m->get_type()) {
case MSG_MGR_MAP:
return handle_mgr_map(static_cast<MMgrMap*>(m));
@ -73,7 +72,7 @@ bool MgrClient::ms_dispatch(Message *m)
return false;
}
default:
ldout(cct, 10) << "Not handling " << *m << dendl;
ldout(cct, 30) << "Not handling " << *m << dendl;
return false;
}
}
@ -82,6 +81,8 @@ bool MgrClient::handle_mgr_map(MMgrMap *m)
{
assert(lock.is_locked_by_me());
ldout(cct, 20) << *m << dendl;
map = m->get_map();
ldout(cct, 4) << "Got map version " << map.epoch << dendl;
m->put();
@ -244,6 +245,8 @@ bool MgrClient::handle_mgr_configure(MMgrConfigure *m)
{
assert(lock.is_locked_by_me());
ldout(cct, 20) << *m << dendl;
if (session == nullptr) {
lderr(cct) << "dropping unexpected configure message" << dendl;
m->put();
@ -313,6 +316,8 @@ bool MgrClient::handle_command_reply(MCommandReply *m)
{
assert(lock.is_locked_by_me());
ldout(cct, 20) << *m << dendl;
const auto tid = m->get_tid();
const auto op = command_table.get_command(tid);
if (op == nullptr) {