]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: reduce log spam 22893/head
authorJohn Spray <john.spray@redhat.com>
Tue, 3 Jul 2018 12:17:09 +0000 (13:17 +0100)
committerJohn Spray <john.spray@redhat.com>
Fri, 6 Jul 2018 10:01:20 +0000 (11:01 +0100)
Several things at level 1 that shouldn't have been, especially
the big dump of all possible commands every time we handle one.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/DaemonServer.cc
src/mgr/MgrStandby.cc

index bb3ce29ae1fad977a1c58a60038c0d2574e0b011..f6a1c709284ee8f834713acd3369b1646319ec58 100644 (file)
@@ -708,7 +708,11 @@ bool DaemonServer::handle_command(MCommand *m)
         con->mark_disposable();
       }
 
-      dout(1) << "handle_command " << cpp_strerror(r) << " " << rs << dendl;
+      if (r == 0) {
+        dout(4) << __func__ << " success" << dendl;
+      } else {
+        derr << __func__ << " " << cpp_strerror(r) << " " << rs << dendl;
+      }
       if (con) {
         MCommandReply *reply = new MCommandReply(r, rs);
         reply->set_tid(m->get_tid());
@@ -1921,7 +1925,6 @@ bool DaemonServer::handle_command(MCommand *m)
   auto py_commands = py_modules.get_py_commands();
   for (const auto &pyc : py_commands) {
     auto pyc_prefix = cmddesc_get_prefix(pyc.cmdstring);
-    dout(1) << "pyc_prefix: '" << pyc_prefix << "'" << dendl;
     if (pyc_prefix == prefix) {
       handler_name = pyc.module_name;
       break;
index cee35c3dc3df75d5bfa1d205fb8a118d48a0f4af..22a7de3febe785e8f784c8e141e6596ab31b7e96 100644 (file)
@@ -180,7 +180,7 @@ int MgrStandby::init()
 void MgrStandby::send_beacon()
 {
   assert(lock.is_locked_by_me());
-  dout(1) << state_str() << dendl;
+  dout(4) << state_str() << dendl;
 
   std::list<PyModuleRef> modules = py_module_registry.get_modules();