Skip to content

Commit

Permalink
fix: Modify logging for security inspector issue (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreichhold authored Feb 25, 2025
1 parent 3bab5e5 commit b3cd40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/notify_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def lambda_handler(event: Dict[str, Any], context: Dict[str, Any]) -> str:
:returns: none
"""
if os.environ.get("LOG_EVENTS", "False") == "True":
logging.info(f"Event logging enabled: `{json.dumps(event)}`")
logging.info("Event logging enabled: %s", json.dumps(event))

for record in event["Records"]:
sns = record["Sns"]
Expand Down

0 comments on commit b3cd40f

Please sign in to comment.