From 8774a77d33c82e0fdf256dbd7a0094bcc2f73089 Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 28 Aug 2014 11:49:49 -0400 Subject: [PATCH] Use Errorf when using formatting directives. Found by go vet. --- addrmgr/addrmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addrmgr/addrmanager.go b/addrmgr/addrmanager.go index f4a1ad1d..b30c7279 100644 --- a/addrmgr/addrmanager.go +++ b/addrmgr/addrmanager.go @@ -401,7 +401,7 @@ func (a *AddrManager) savePeers() { w, err := os.Create(a.peersFile) if err != nil { - log.Error("Error opening file %s: %v", a.peersFile, err) + log.Errorf("Error opening file %s: %v", a.peersFile, err) return } enc := json.NewEncoder(w)