Skip to content

Commit

Permalink
Patch: Format raw event in notification messages (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbanderson committed Oct 7, 2020
1 parent c1ed9ca commit e67785f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions reflex_core/aws_rule_interface.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
""" Module for the AWSRuleInterface class """
import json
import logging
import os
import re

import boto3

from reflex_core.notifiers import Notifier
from reflex_core.notifiers import SNSNotifier

from reflex_core.notifiers import Notifier, SNSNotifier

LOG_LEVEL = os.environ.get("LOG_LEVEL", "INFO").upper()

Expand Down Expand Up @@ -291,7 +290,7 @@ def _get_remediation_message(self):
message = (
f"{rule_message}\n\n"
f"Event time: {self.event['time']}\n"
f"Raw event: {self.event}"
f"Raw event: {json.dumps(self.event, indent=2)}"
)

return message
Expand Down

0 comments on commit e67785f

Please sign in to comment.