From 2dc6700e38b3fbd52ebf4472f1576081301ecfcc Mon Sep 17 00:00:00 2001 From: IvanBelyakoff Date: Fri, 26 May 2023 10:41:33 +0200 Subject: [PATCH] chore(wallet): fix annoying error on missing argument while logging (#3532) error on token fetch from store --- services/wallet/token/token.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/wallet/token/token.go b/services/wallet/token/token.go index 06d42c4ab..4b814d46b 100644 --- a/services/wallet/token/token.go +++ b/services/wallet/token/token.go @@ -139,7 +139,7 @@ func (tm *Manager) fetchTokens() { for _, store := range tm.stores { tokens, err := store.GetTokens() if err != nil { - log.Error("can't fetch tokens from store: %s", err) + log.Error("can't fetch tokens from store", "error", err) continue } validTokens := make([]*Token, 0) @@ -220,7 +220,7 @@ func (tm *Manager) GetAllTokens() ([]*Token, error) { tokens, err := tm.GetCustoms() if err != nil { - log.Error("can't fetch custom tokens: %s", err) + log.Error("can't fetch custom tokens", "error", err) } tokens = append(tm.tokenList, tokens...)