From e7cec91c8720eddd1ccff3403099b60ee3da0ccd Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Thu, 12 Apr 2018 01:32:44 +0200 Subject: Add warning message when health check fails Change-Id: I89d465ec9395eeb298a6ca209a8a0fff9107674e Signed-off-by: Ondrej Fabry --- core/core.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core.go b/core/core.go index ebe7f68..6714f6f 100644 --- a/core/core.go +++ b/core/core.go @@ -302,13 +302,14 @@ func (c *Connection) healthCheckLoop(connChan chan ConnectionEvent) { if err != nil { failedChecks++ + log.Warnf("VPP health check failed (%d. time): %v", failedChecks, err) } else { failedChecks = 0 } if failedChecks > healthCheckThreshold { // in case of error, break & disconnect - log.Errorf("VPP health check failed: %v", err) + log.Errorf("Number of VPP health check fails exceeded treshold (%d)", healthCheckThreshold, err) // signal disconnected event via channel connChan <- ConnectionEvent{Timestamp: time.Now(), State: Disconnected} break -- cgit 1.2.3-korg