This commit is contained in:
Son 2022-03-25 16:49:49 +01:00
parent 334365e853
commit 75da6d7027
1 changed files with 1 additions and 5 deletions

View File

@ -544,11 +544,7 @@ def apply_dmarc_policy(
) -> Optional[str]:
dmarc_result = get_dmarc_status(msg)
if dmarc_result:
newrelic.agent.record_custom_event(
newrelic.agent.record_custom_event(
"DmarcCheck", {"result": dmarc_result.name}
)
)
newrelic.agent.record_custom_event("DmarcCheck", {"result": dmarc_result.name})
else:
newrelic.agent.record_custom_event("DmarcCheck", {"result": "N/A"})