From f67592afc9a65b561916e18dc400a8fff954e7b2 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Mon, 30 Apr 2018 13:43:08 -0500 Subject: [PATCH] Correct non-verbose printing --- tools/notifier/term.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tools/notifier/term.py b/tools/notifier/term.py index c68d06b075..9db561ef7d 100644 --- a/tools/notifier/term.py +++ b/tools/notifier/term.py @@ -77,15 +77,12 @@ class TerminalNotifier(Notifier): self.output += msg + "\n" def print_notify(self, event): - """ Default command line notification + """ Command line notification """ - if not self.verbose and event['type'] == 'tool_error': + if event['type'] == 'tool_error': return event['message'] - elif event['type'] in ['info']: - return event['message'] - - elif event['type'] == 'cc': + elif event['type'] == 'cc' and event['severity'] != 'verbose': event['severity'] = event['severity'].title() if PRINT_COMPILER_OUTPUT_AS_LINK: @@ -105,7 +102,7 @@ class TerminalNotifier(Notifier): basename(event['file'])) def print_notify_verbose(self, event): - """ Default command line notification with more verbose mode + """ Command line notification with more verbose mode """ if event['type'] == 'info': return event['message']