From 787f4216b34dfb41247273fb1a453498781e48cc Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 29 Nov 2023 15:58:53 -0500 Subject: [PATCH] Expand Zookeeper log daemon prefix to match --- daemon-common/log.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon-common/log.py b/daemon-common/log.py index 16a27e3f..abbed312 100644 --- a/daemon-common/log.py +++ b/daemon-common/log.py @@ -157,6 +157,8 @@ class Logger(object): if self.config["zookeeper_logging"]: # Set the daemon value (only used here as others do not overlap with different daemons) daemon = f"{self.config['daemon_name']}: " + # Expand to match all daemon names (pvcnoded, pvcworkerd, pvchealthd) + daemon = "{daemon: <12}".format(daemon=daemon) # Assemble output string output = daemon + colour + prompt + endc + date + prefix + message self.zookeeper_queue.put(output)