]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: track 'mon_cluster_log_to_file' 62074/head
authorRonen Friedman <rfriedma@redhat.com>
Sun, 2 Mar 2025 12:30:07 +0000 (06:30 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 3 Mar 2025 16:03:12 +0000 (10:03 -0600)
'mon_cluster_log_to_file' changes were handled in
LogMonitor::handle_conf_change(), but the LogMonitor was not
registered to track it. This PR adds the registration.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/mon/LogMonitor.cc

index 0f8e1c0716f264e1a4b9a98307895b0521191350..2fa2dfae5ee8a1af75f37f66bbafb987194098f3 100644 (file)
@@ -1283,7 +1283,8 @@ std::vector<std::string> LogMonitor::get_tracked_keys() const noexcept
     "mon_cluster_log_to_graylog"s,
     "mon_cluster_log_to_graylog_host"s,
     "mon_cluster_log_to_graylog_port"s,
-    "mon_cluster_log_to_journald"s
+    "mon_cluster_log_to_journald"s,
+    "mon_cluster_log_to_file"s
   };}
 
 void LogMonitor::handle_conf_change(const ConfigProxy& conf,