mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-24 15:12:37 +00:00
Change logging to debug when notifications aren't sent due to route mute
Signed-off-by: Ben Ridley <benridley29@gmail.com>
This commit is contained in:
parent
a3cb125e5c
commit
93e0117b46
@ -806,8 +806,8 @@ func (mts TimeMuteStage) Exec(ctx context.Context, l log.Logger, alerts ...*type
|
|||||||
}
|
}
|
||||||
// If the current time is inside a mute time, all alerts are removed from the pipeline
|
// If the current time is inside a mute time, all alerts are removed from the pipeline
|
||||||
if muted {
|
if muted {
|
||||||
lvl := level.Warn(l)
|
lvl := level.Debug(l)
|
||||||
lvl.Log("Mail not sent due to being outside time interval")
|
lvl.Log("msg", "Notifications not sent, route is within mute time")
|
||||||
return ctx, nil, nil
|
return ctx, nil, nil
|
||||||
}
|
}
|
||||||
return ctx, alerts, nil
|
return ctx, alerts, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user