From 9740c2d59f88bd2739a4f5ba5c608bbddf5c9efe Mon Sep 17 00:00:00 2001 From: Jonathan Reichhold Date: Tue, 25 Feb 2025 13:48:33 -0800 Subject: [PATCH] modify logging for security inspector issue --- functions/notify_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/notify_slack.py b/functions/notify_slack.py index d7e7c864..04ebc58f 100644 --- a/functions/notify_slack.py +++ b/functions/notify_slack.py @@ -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"]