From 238cc05d3bff6fec068a5ac4f2cfb811afa6e47f Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 10 Jun 2026 13:17:19 +0200 Subject: [PATCH] lib.ExecContext.CallContext.log_delim: Beautify Make the log delimiter look more consistent: Whether a CallContext was constructed with a title parameter or without, prefix its .log_delimiter property with a "----". Signed-off-by: Jan Lindemann --- src/python/jw/pkg/lib/ExecContext.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/python/jw/pkg/lib/ExecContext.py b/src/python/jw/pkg/lib/ExecContext.py index 049407c5..e0923dc3 100644 --- a/src/python/jw/pkg/lib/ExecContext.py +++ b/src/python/jw/pkg/lib/ExecContext.py @@ -119,12 +119,9 @@ class ExecContext(Base): self.__wd = wd self.__log_prefix = log_prefix self.__parent = parent - self.__title = title self.__pretty_cmd: str | None = None - self.__delim = ( - title if title is not None else - f'---- {parent.uri}: Running {self.pretty_cmd} -' - ) + self.__title = f'{parent.uri}: Running {self.pretty_cmd} -' + self.__delim = f'---- {title} -' delim_len = 120 self.__delim += '-' * max(0, delim_len - len(self.__delim)) self.__mod_env = {'LC_ALL': 'C'} if mod_env is None else mod_env