Skip to content

Commit f67592a

Browse files
committed
Correct non-verbose printing
1 parent 542bceb commit f67592a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tools/notifier/term.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,12 @@ def notify(self, event):
7777
self.output += msg + "\n"
7878

7979
def print_notify(self, event):
80-
""" Default command line notification
80+
""" Command line notification
8181
"""
82-
if not self.verbose and event['type'] == 'tool_error':
82+
if event['type'] == 'tool_error':
8383
return event['message']
8484

85-
elif event['type'] in ['info']:
86-
return event['message']
87-
88-
elif event['type'] == 'cc':
85+
elif event['type'] == 'cc' and event['severity'] != 'verbose':
8986
event['severity'] = event['severity'].title()
9087

9188
if PRINT_COMPILER_OUTPUT_AS_LINK:
@@ -105,7 +102,7 @@ def print_notify(self, event):
105102
basename(event['file']))
106103

107104
def print_notify_verbose(self, event):
108-
""" Default command line notification with more verbose mode
105+
""" Command line notification with more verbose mode
109106
"""
110107
if event['type'] == 'info':
111108
return event['message']

0 commit comments

Comments
 (0)