1
0
Fork 0
mirror of https://github.com/Luzifer/elb-instance-status.git synced 2024-11-09 14:30:07 +00:00

Log failing checks

refs Jimdo/elb-instance-status#5
This commit is contained in:
Knut Ahlers 2016-11-29 12:15:58 +01:00
parent 4f82c63205
commit 884fc04ef0
No known key found for this signature in database
GPG key ID: 6E122DD2F6F74ABB

View file

@ -177,6 +177,10 @@ func executeAndRegisterCheck(ctx context.Context, checkID string) {
checkResults[checkID].Streak = 1 checkResults[checkID].Streak = 1
} }
if !success {
log.Printf("Check %q failed, streak now at %d, error was: %s", checkID, checkResults[checkID].Streak, err)
}
lastResultRegistered = time.Now() lastResultRegistered = time.Now()
if success { if success {