rules: fix bug for unknown alert state. (#7599)

Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
johncming 2020-07-17 15:39:15 +08:00 committed by GitHub
parent ddedf454d0
commit a69a8b931f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func (s AlertState) String() string {
case StateFiring:
return "firing"
}
panic(errors.Errorf("unknown alert state: %s", s.String()))
panic(errors.Errorf("unknown alert state: %d", s))
}
// Alert is the user-level representation of a single instance of an alerting rule.