Merge pull request #853 from acasajus/newrelic-event
Rename newrelic dmarc event
This commit is contained in:
commit
2a4d2d723b
|
@ -544,9 +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})
|
||||||
"Custom/dmarc_check", {"result": dmarc_result.name}
|
|
||||||
)
|
|
||||||
|
|
||||||
if not DMARC_CHECK_ENABLED or not dmarc_result:
|
if not DMARC_CHECK_ENABLED or not dmarc_result:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue