mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
lib.ExecContext.log_delim(): No interactive footer
lib.ExecContext.log_delim() logs a header not designed for enclosing command output, and, hence, no footer should be output. This commit suppresses it. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
9b6ec109a1
commit
9b208ecc1e
1 changed files with 3 additions and 2 deletions
|
|
@ -122,7 +122,8 @@ class ExecContext(abc.ABC):
|
|||
def log_delim(self, start: bool) -> None:
|
||||
if not self.__verbose:
|
||||
return None
|
||||
if start and self.__interactive:
|
||||
if self.__interactive: # Don't log footer in interative mode
|
||||
if start:
|
||||
log(NOTICE, self.__delim)
|
||||
return
|
||||
delim = ',' + self.__delim + ' >' if start else '`' + self.__delim + ' <'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue