From 437ab56d6a5a03f2603ba442a280c8997dd08d08 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 14 Jan 2020 17:11:48 -0600 Subject: [PATCH] cephadm: fix logging defaults - prefix stderr log lines with 'debug ' - send cluster log to stderr (only affects mons) - default to sending cluser log to stderr only (not to file) This aligns things with the container-y way, as we do with rook. It means that if you want legacy behavior (log files), you have *2* settings to change: log_to_file = true mon_cluster_log_to_file = true We could default this to leave cluster log to file by default since they aren't that big (and we do have log rotation), but it's not as clean as it could be... Signed-off-by: Sage Weil --- src/cephadm/cephadm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 985e70a38631cd..d18f58aecfb2b9 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -750,6 +750,9 @@ def get_daemon_args(fsid, daemon_type, daemon_id): r += [ '--default-log-to-file=false', '--default-log-to-stderr=true', + '--default-log-stderr-prefix=debug\ ', + '--default-mon-cluster-log-to-file=false', + '--default-mon-cluster-log-to-stderr=true', '--setuser', 'ceph', '--setgroup', 'ceph' ]