mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
common/common_init: disable default dout logging for UTILITY_NODOUT too
This was broken in 4d06719f10
.
Fixes: http://tracker.ceph.com/issues/20771
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
5a1f595bb3
commit
dfab9d9b5d
@ -52,7 +52,8 @@ CephContext *common_preinit(const CephInitParameters &iparams,
|
||||
conf->set_val("keyring", "$osd_data/keyring", false);
|
||||
}
|
||||
|
||||
if (code_env == CODE_ENVIRONMENT_LIBRARY) {
|
||||
if (code_env == CODE_ENVIRONMENT_LIBRARY ||
|
||||
code_env == CODE_ENVIRONMENT_UTILITY_NODOUT) {
|
||||
conf->set_val_or_die("log_to_stderr", "false");
|
||||
conf->set_val_or_die("err_to_stderr", "false");
|
||||
conf->set_val_or_die("log_flush_on_exit", "false");
|
||||
|
Loading…
Reference in New Issue
Block a user