mirror of https://github.com/ARMmbed/mbed-os.git
Correct non-verbose printing
parent
542bcebac7
commit
f67592afc9
|
|
@ -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']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue