From 10e19064d947c6cc2345821ec72ebbec6e989a22 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 5 Nov 2015 18:47:16 -0800 Subject: [PATCH] Make periodic fingerprinting log the error --- client/client.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/client.go b/client/client.go index 2d466a784..029ac3954 100644 --- a/client/client.go +++ b/client/client.go @@ -455,16 +455,14 @@ func (c *Client) fingerprint() error { return nil } -// fingerprintPeriodic runs a fingerprinter at the specified duration. If the -// fingerprinter returns an error, the function exits. +// fingerprintPeriodic runs a fingerprinter at the specified duration. func (c *Client) fingerprintPeriodic(name string, f fingerprint.Fingerprint, d time.Duration) { c.logger.Printf("[DEBUG] client: periodically fingerprinting %v at duration %v", name, d) for { select { case <-time.After(d): if _, err := f.Fingerprint(c.config, c.config.Node); err != nil { - c.logger.Printf("[DEBUG] client: disabling periodic fingerprinting for %v: %v", name, err) - return + c.logger.Printf("[DEBUG] client: periodic fingerprinting for %v failed: %v", name, err) } case <-c.shutdownCh: return