Expand Zookeeper log daemon prefix to match

This commit is contained in:
Joshua Boniface 2023-11-29 15:58:53 -05:00
parent 647cba3cf5
commit 787f4216b3
1 changed files with 2 additions and 0 deletions

View File

@ -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)