Skip to content

Commit

Permalink
fix: try fix logging format error
Browse files Browse the repository at this point in the history
  • Loading branch information
EreminAnton committed Nov 11, 2024
1 parent ef4c366 commit a3bacdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a3bacdc

Please sign in to comment.