Skip to content

Commit

Permalink
extra logging to catch edge case when finding is not processed at all
Browse files Browse the repository at this point in the history
  • Loading branch information
mlflr committed Oct 31, 2024
1 parent c6094a0 commit b79115d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ def lambda_handler(event: dict, context: LambdaContext):
logger.error(f"Failed to decode JSON from note text: {e}. Cannot autoclose.")
except Exception as e:
logger.error(f"Error processing resolved finding for findingId {finding["Id"]}: {e}. Cannot autoclose.")
else:
logger.info(f"Finding {finding["Id"]} is not in a state to be processed. Workflow status: {workflow_status}, Compliance status: {compliance_status}")

0 comments on commit b79115d

Please sign in to comment.