common/common_init: disable default dout logging for UTILITY_NODOUT too

This was broken in 4d06719f101f49019be25bd6137f72f2cb85bd5a.

Fixes: http://tracker.ceph.com/issues/20771
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-07-25 22:20:06 -04:00
parent 5a1f595bb3
commit dfab9d9b5d

View File

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