Skip to content

Commit

Permalink
Merge pull request #1105 from SomtochiAma/error-msg
Browse files Browse the repository at this point in the history
Send warning and error alerts correctly
  • Loading branch information
stefanprodan authored Feb 9, 2022
2 parents 7071d42 + 9796903 commit b7ba3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (c *Controller) alert(canary *flaggerv1.Canary, message string, metadata bo
if severity == alert.Severity {
shouldAlert = true
}
if severity == flaggerv1.SeverityWarn && alert.Severity == flaggerv1.SeverityError {
if severity == flaggerv1.SeverityError && alert.Severity == flaggerv1.SeverityWarn {
shouldAlert = true
}
}
Expand Down

0 comments on commit b7ba3ab

Please sign in to comment.