From: Sage Weil Date: Fri, 22 Mar 2019 15:54:50 +0000 (-0500) Subject: common/ceph_context: fix log_to_file observer X-Git-Tag: v14.2.1~95^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=be4964a5133940f5b3b6b2e66415d604788f5a8f;p=ceph.git common/ceph_context: fix log_to_file observer Signed-off-by: Sage Weil (cherry picked from commit d8810ab58241b80776e2564bce911299341f73e7) --- diff --git a/src/common/ceph_context.cc b/src/common/ceph_context.cc index 626c97a8f46..8ea3e223629 100644 --- a/src/common/ceph_context.cc +++ b/src/common/ceph_context.cc @@ -297,7 +297,8 @@ public: } // file - if (changed.count("log_file")) { + if (changed.count("log_file") || + changed.count("log_to_file")) { if (conf->log_to_file) { log->set_log_file(conf->log_file); } else {