From a3bacdc1c51a43aaf8c213d4f052990138dc348c Mon Sep 17 00:00:00 2001 From: Anton <125114167+EreminAnton@users.noreply.github.com> Date: Mon, 11 Nov 2024 15:07:02 +0500 Subject: [PATCH] fix: try fix logging format error --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 36518a5..0dcff30 100644 --- a/src/main.py +++ b/src/main.py @@ -230,9 +230,9 @@ def handle_event( slack_config=slack_config, ) - logger.debug({"Processing result": result}) + logger.debug({"Processing result": {"result":result}}) is_event_access_denied = ("errorCode" in event) and ("AccessDenied" in event["errorCode"]) and (cfg.push_access_denied_cloudwatch_metrics is True) - logger.debug({"Is event an access denied event": {is_event_access_denied}}) + logger.debug({"Is event an access denied event": {"bool": is_event_access_denied}}) if is_event_access_denied: push_total_access_denied_events_cloudwatch_metric()