From be4964a5133940f5b3b6b2e66415d604788f5a8f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 22 Mar 2019 10:54:50 -0500 Subject: [PATCH] common/ceph_context: fix log_to_file observer Signed-off-by: Sage Weil (cherry picked from commit d8810ab58241b80776e2564bce911299341f73e7) --- src/common/ceph_context.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/ceph_context.cc b/src/common/ceph_context.cc index 626c97a8f4639..8ea3e22362994 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 { -- 2.39.5