From: Sage Weil Date: Wed, 3 Apr 2019 12:18:50 +0000 (-0500) Subject: mon/LogMonitor: add mon_cluster_log_to_file bool option X-Git-Tag: v15.0.0~6^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=978ac6e2f8e9fe4cc20410c6b45b1a164e22c4ea;p=ceph.git mon/LogMonitor: add mon_cluster_log_to_file bool option Allow cluster logging to a file to be disabled via a boolean. Default to true to avoid any change in behavior. Signed-off-by: Sage Weil --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index c10a906e6595..f17b2f412c69 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -68,6 +68,7 @@ OPTION(clog_to_graylog_port, OPT_STR) OPTION(mon_cluster_log_to_syslog, OPT_STR) OPTION(mon_cluster_log_to_syslog_level, OPT_STR) // this level and above OPTION(mon_cluster_log_to_syslog_facility, OPT_STR) +OPTION(mon_cluster_log_to_file, OPT_BOOL) OPTION(mon_cluster_log_file, OPT_STR) OPTION(mon_cluster_log_file_level, OPT_STR) OPTION(mon_cluster_log_to_graylog, OPT_STR) diff --git a/src/common/options.cc b/src/common/options.cc index 8a35540db451..5181cf6c48d5 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -663,11 +663,18 @@ std::vector