]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
global: fix err_to_stderr can't work when it was configured to false
authorYan Jun <yan.jun8@zte.com.cn>
Tue, 25 Sep 2018 08:29:13 +0000 (16:29 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Tue, 16 Oct 2018 12:32:10 +0000 (20:32 +0800)
commitd24cac1ba4ed158da7bb79b63fbc398d804f1cb2
treeba86bd69328c7f0e1115a698305e7fe640c7084b
parent0cb8ef3c0985f215f7684a3efc822b9207424441
global: fix err_to_stderr can't work when it was configured to false

function `set_stderr_level(-1, -1)` set m_stderr_log and m_stderr_crash to -1,
regardless of whether `err_to_stderr` is set to false or not, so logs will be
 always written to stderr. fix it as the same way as handle_conf_change does.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/global/global_init.cc