Skip to content

Commit

Permalink
Improvements of violations console printing. Based in discussion on PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Jun 20, 2024
1 parent fcecff7 commit d1e6021
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/filename_inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ def run():

set_action_output('violation-count', str(violation_count))

if verbose_logging:
print(f'Total violations: {violation_count}')
print(f'Violating files: {violations}')
logging.info(f'Total violations: {violation_count}')
logging.debug(f'Violating files: {violations}')

if report_format == 'console':
logging.info(f'Total violations: {violation_count}')
if report_format == 'console' and not verbose_logging:
logging.info(f'Violating files: {violations}')

if report_format == 'csv':
Expand Down

0 comments on commit d1e6021

Please sign in to comment.