This commit is contained in:
Son 2022-03-25 16:49:49 +01:00
parent 334365e853
commit 75da6d7027

View File

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