Skip to content

Commit

Permalink
more clear log message
Browse files Browse the repository at this point in the history
  • Loading branch information
marceldevroed committed Dec 30, 2024
1 parent 4775391 commit c8c4edb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def manage(func, args, logger: Logger):
note_text = chunk['Note']['Text']
workflow_status = chunk['Workflow']['Status']
count = len(chunk['FindingIdentifiers'])
logger.info(f"{count} findings are {workflow_status} ({note_text}).")
logger.info(f"{count} finding(s) {workflow_status} with note {note_text}.")
return {"finding_state": "suppressed"}
else:
logger.info("No findings were suppressed.")
Expand All @@ -46,4 +46,4 @@ def manage(func, args, logger: Logger):
logger.error(
"No explicit error was raised, but not all findings management rules were applied successfully, please investigate."
)
return {"finding_state": "skipped"}
return {"finding_state": "skipped"}

0 comments on commit c8c4edb

Please sign in to comment.