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)