From 0e455cc77ef342b857e2d543d515408cfe02e094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 17 Dec 2024 17:51:47 +0100 Subject: [PATCH] machine_logger: increase truncation limit to 20 10 was a bit short. --- pkgs/clan-cli/clan_cli/custom_logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/custom_logger.py b/pkgs/clan-cli/clan_cli/custom_logger.py index 4524d78f5..a7a3d2891 100644 --- a/pkgs/clan-cli/clan_cli/custom_logger.py +++ b/pkgs/clan-cli/clan_cli/custom_logger.py @@ -60,7 +60,7 @@ class PrefixFormatter(logging.Formatter): # If command_prefix is set, color the prefix with a unique color. elif command_prefix: command_prefix = command_prefix[ - :10 + :20 ] # Truncate the command prefix to 10 characters. prefix_color = self.hostname_colorcode(command_prefix) format_str = color_by_tuple(f"[{command_prefix}]", fg=prefix_color)