]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: replace cout/derr with dout(0) to avoid writing trivial logs to syslog file
authorYan Jun <yan.jun8@zte.com.cn>
Fri, 14 Sep 2018 06:48:52 +0000 (14:48 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Tue, 16 Oct 2018 12:31:50 +0000 (20:31 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/ceph_osd.cc
src/osd/OSD.cc

index 0cd40fa5dc94dff4b6e06dfca89423cdff80b1ad..d210b4a2bee83f10051bbd6da1a61d671e5fc5ff 100644 (file)
@@ -511,11 +511,11 @@ flushjournal_out:
   ms_hb_back_server->set_cluster_protocol(CEPH_OSD_PROTOCOL);
   ms_hb_front_server->set_cluster_protocol(CEPH_OSD_PROTOCOL);
 
-  cout << "starting osd." << whoami
-       << " osd_data " << data_path
-       << " " << ((journal_path.empty()) ?
-                 "(no journal)" : journal_path)
-       << std::endl;
+  dout(0) << "starting osd." << whoami
+          << " osd_data " << data_path
+          << " " << ((journal_path.empty()) ?
+                   "(no journal)" : journal_path)
+          << dendl;
 
   uint64_t message_size =
     g_conf().get_val<Option::size_t>("osd_client_message_size_cap");
index d6c0ed13aea50c73c20060b8ebee71e64b9a5b4b..276e3787c8799271da756435c822c97fe63ab00f 100644 (file)
@@ -3419,7 +3419,7 @@ int OSD::shutdown()
     osd_lock.Unlock();
     return 0;
   }
-  derr << "shutdown" << dendl;
+  dout(0) << "shutdown" << dendl;
 
   set_state(STATE_STOPPING);