Added print_report()

This commit is contained in:
2Shirt 2019-11-08 14:08:16 -07:00
parent b7c790438a
commit 3a2924bd51
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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)