disable alert emails
This commit is contained in:
parent
be3a588e40
commit
7ea79afea1
1 changed files with 12 additions and 12 deletions
|
|
@ -153,12 +153,12 @@ defmodule Towerops.Monitoring.EquipmentMonitor do
|
|||
})
|
||||
|
||||
# Send email notification in background (not in test environment)
|
||||
_ =
|
||||
if !test_env?() do
|
||||
Task.start(fn ->
|
||||
Alerts.send_alert_notification(alert)
|
||||
end)
|
||||
end
|
||||
# _ =
|
||||
# if !test_env?() do
|
||||
# Task.start(fn ->
|
||||
# Alerts.send_alert_notification(alert)
|
||||
# end)
|
||||
# end
|
||||
|
||||
# Broadcast alert
|
||||
_ =
|
||||
|
|
@ -187,12 +187,12 @@ defmodule Towerops.Monitoring.EquipmentMonitor do
|
|||
})
|
||||
|
||||
# Send email notification in background (not in test environment)
|
||||
_ =
|
||||
if !test_env?() do
|
||||
Task.start(fn ->
|
||||
Alerts.send_alert_notification(alert)
|
||||
end)
|
||||
end
|
||||
# _ =
|
||||
# if !test_env?() do
|
||||
# Task.start(fn ->
|
||||
# Alerts.send_alert_notification(alert)
|
||||
# end)
|
||||
# end
|
||||
|
||||
# Resolve any active equipment_down alerts
|
||||
_ =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue