mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +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,8 +122,9 @@ class ExecContext(abc.ABC):
|
||||||
def log_delim(self, start: bool) -> None:
|
def log_delim(self, start: bool) -> None:
|
||||||
if not self.__verbose:
|
if not self.__verbose:
|
||||||
return None
|
return None
|
||||||
if start and self.__interactive:
|
if self.__interactive: # Don't log footer in interative mode
|
||||||
log(NOTICE, self.__delim)
|
if start:
|
||||||
|
log(NOTICE, self.__delim)
|
||||||
return
|
return
|
||||||
delim = ',' + self.__delim + ' >' if start else '`' + self.__delim + ' <'
|
delim = ',' + self.__delim + ' >' if start else '`' + self.__delim + ' <'
|
||||||
log(NOTICE, delim)
|
log(NOTICE, delim)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue