From 012f76cfc8984e37a76e5e845b6b94dc6e3899ee Mon Sep 17 00:00:00 2001 From: ProDigySML Date: Tue, 5 Feb 2019 22:14:03 -0800 Subject: [PATCH] Removed [Thread] statements when --silent is present --- Interlace/lib/core/output.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Interlace/lib/core/output.py b/Interlace/lib/core/output.py index 771ddf8..b5abd0f 100644 --- a/Interlace/lib/core/output.py +++ b/Interlace/lib/core/output.py @@ -42,12 +42,13 @@ class OutputHelper(object): 'leader':leader } - if level == 1: - template = '[{time}] {leader} [{target}] {command} {message}' - else: - template = '[{time}] {leader} [{target}] {command} {message}' + if not self.silent: + if level == 1: + template = '[{time}] {leader} [{target}] {command} {message}' + else: + template = '[{time}] {leader} [{target}] {command} {message}' - print(template.format(**format_args)) + print(template.format(**format_args)) class Level(IntEnum):