Added indent option to wk.std.print_report()
This commit is contained in:
parent
945ae941fa
commit
b75326aeee
1 changed files with 3 additions and 1 deletions
|
|
@ -912,9 +912,11 @@ def print_info(msg, log=True, **kwargs):
|
|||
LOG.info(msg)
|
||||
|
||||
|
||||
def print_report(report, log=True):
|
||||
def print_report(report, indent=None, log=True):
|
||||
"""Print report to screen and optionally to log."""
|
||||
for line in report:
|
||||
if indent:
|
||||
line = f'{" "*indent}{line}'
|
||||
print(line)
|
||||
if log:
|
||||
LOG.info(strip_colors(line))
|
||||
|
|
|
|||
Loading…
Reference in a new issue