Skip to content

Commit

Permalink
fix: Only send to New Relic if event/log is enabled AND custom proper…
Browse files Browse the repository at this point in the history
…ty name specified.

Fixes #596
  • Loading branch information
Göran Sander committed Dec 2, 2022
1 parent be6db37 commit 9fc81d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/incident_mgmt/new_relic.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ async function sendReloadTaskFailureEvent(reloadParams) {
if (
globals.config.has(
'Butler.incidentTool.newRelic.reloadTaskFailure.destination.event.sendToAccount.byCustomProperty.enable'
) ||
) &&
globals.config.has(
'Butler.incidentTool.newRelic.reloadTaskFailure.destination.event.sendToAccount.byCustomProperty.customPropertyName'
)
Expand Down Expand Up @@ -706,7 +706,7 @@ async function sendReloadTaskFailureLog(reloadParams) {
if (
globals.config.has(
'Butler.incidentTool.newRelic.reloadTaskFailure.destination.log.sendToAccount.byCustomProperty.enable'
) ||
) &&
globals.config.has(
'Butler.incidentTool.newRelic.reloadTaskFailure.destination.log.sendToAccount.byCustomProperty.customPropertyName'
)
Expand Down Expand Up @@ -836,7 +836,7 @@ function sendReloadTaskAbortedEvent(reloadParams) {
if (
globals.config.has(
'Butler.incidentTool.newRelic.reloadTaskAborted.destination.event.sendToAccount.byCustomProperty.enable'
) ||
) &&
globals.config.has(
'Butler.incidentTool.newRelic.reloadTaskAborted.destination.event.sendToAccount.byCustomProperty.customPropertyName'
)
Expand Down Expand Up @@ -966,7 +966,7 @@ function sendReloadTaskAbortedLog(reloadParams) {
if (
globals.config.has(
'Butler.incidentTool.newRelic.reloadTaskAborted.destination.log.sendToAccount.byCustomProperty.enable'
) ||
) &&
globals.config.has(
'Butler.incidentTool.newRelic.reloadTaskAborted.destination.log.sendToAccount.byCustomProperty.customPropertyName'
)
Expand Down

0 comments on commit 9fc81d0

Please sign in to comment.