Added print_report()
This commit is contained in:
parent
b7c790438a
commit
3a2924bd51
1 changed files with 8 additions and 0 deletions
|
|
@ -859,6 +859,14 @@ def print_info(msg, log=True, **kwargs):
|
|||
LOG.info(msg)
|
||||
|
||||
|
||||
def print_report(report, log=True):
|
||||
"""Print report to screen and optionally to log."""
|
||||
for line in report:
|
||||
print(line)
|
||||
if log:
|
||||
LOG.info(strip_colors(line))
|
||||
|
||||
|
||||
def print_standard(msg, log=True, **kwargs):
|
||||
"""Prints message and log as INFO."""
|
||||
print(msg, **kwargs)
|
||||
|
|
|
|||
Loading…
Reference in a new issue