Merge pull request #853 from acasajus/newrelic-event

Rename newrelic dmarc event
This commit is contained in:
Son Nguyen Kim 2022-03-24 12:53:02 +01:00 committed by GitHub
commit 2a4d2d723b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -544,9 +544,7 @@ def apply_dmarc_policy(
) -> Optional[str]:
dmarc_result = get_dmarc_status(msg)
if dmarc_result:
newrelic.agent.record_custom_event(
"Custom/dmarc_check", {"result": dmarc_result.name}
)
newrelic.agent.record_custom_event("DmarcCheck", {"result": dmarc_result.name})
if not DMARC_CHECK_ENABLED or not dmarc_result:
return None