From 71371fc5921e419b76525ed6b767dae6192c9130 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Sun, 7 Aug 2016 12:49:40 +0900 Subject: [PATCH] tiny: Fix duplicated error message in CPU fingerprint --- client/fingerprint/cpu.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/fingerprint/cpu.go b/client/fingerprint/cpu.go index 198043846..00f9b848c 100644 --- a/client/fingerprint/cpu.go +++ b/client/fingerprint/cpu.go @@ -23,8 +23,7 @@ func NewCPUFingerprint(logger *log.Logger) Fingerprint { func (f *CPUFingerprint) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) { if err := stats.Init(); err != nil { - f.logger.Printf("[FATAL] fingerprint.cpu: unable to obtain CPU information: %v", err) - return false, err + return false, fmt.Errorf("Unable to obtain CPU information: %v", err) } modelName := stats.CPUModelName()