Correct non-verbose printing

pull/6781/head
Jimmy Brisson 2018-04-30 13:43:08 -05:00
parent 542bcebac7
commit f67592afc9
1 changed files with 4 additions and 7 deletions

View File

@ -77,15 +77,12 @@ class TerminalNotifier(Notifier):
self.output += msg + "\n" self.output += msg + "\n"
def print_notify(self, event): 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'] return event['message']
elif event['type'] in ['info']: elif event['type'] == 'cc' and event['severity'] != 'verbose':
return event['message']
elif event['type'] == 'cc':
event['severity'] = event['severity'].title() event['severity'] = event['severity'].title()
if PRINT_COMPILER_OUTPUT_AS_LINK: if PRINT_COMPILER_OUTPUT_AS_LINK:
@ -105,7 +102,7 @@ class TerminalNotifier(Notifier):
basename(event['file'])) basename(event['file']))
def print_notify_verbose(self, event): 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': if event['type'] == 'info':
return event['message'] return event['message']