osd: replace cout/derr with dout(0) to avoid writing trivial logs to syslog file

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
This commit is contained in:
Yan Jun 2018-09-14 14:48:52 +08:00
parent 6be421539d
commit 0cb8ef3c09
2 changed files with 6 additions and 6 deletions

View 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");

View File

@ -3419,7 +3419,7 @@ int OSD::shutdown()
osd_lock.Unlock();
return 0;
}
derr << "shutdown" << dendl;
dout(0) << "shutdown" << dendl;
set_state(STATE_STOPPING);