Skip to content

Commit

Permalink
fix multi failure notify (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
suchen-sci authored May 23, 2024
1 parent 7bb241a commit 3988429
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion probe/base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ func (d *DefaultProbe) Probe() probe.Result {
title := status.Title()

// process the notification strategy
d.ProbeResult.Stat.NotificationStrategyData.ProcessStatus(status == probe.StatusUp)
if status != probe.StatusInit {
d.ProbeResult.Stat.NotificationStrategyData.ProcessStatus(status == probe.StatusUp)
}

if len(d.ProbeTag) > 0 {
d.ProbeResult.Message = fmt.Sprintf("%s (%s/%s): %s", title, d.ProbeKind, d.ProbeTag, msg)
Expand Down

0 comments on commit 3988429

Please sign in to comment.