From 884fc04ef0ce5ae86e67af2c84048b73d2aeca71 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 29 Nov 2016 12:15:58 +0100 Subject: [PATCH] Log failing checks refs Jimdo/elb-instance-status#5 --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index f7ea88c..4a182ec 100644 --- a/main.go +++ b/main.go @@ -177,6 +177,10 @@ func executeAndRegisterCheck(ctx context.Context, checkID string) { 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() if success {