chore(wallet): fix annoying error on missing argument while logging (#3532)

error on token fetch from store
This commit is contained in:
IvanBelyakoff 2023-05-26 10:41:33 +02:00 committed by GitHub
parent dc84afb751
commit 2dc6700e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ func (tm *Manager) fetchTokens() {
for _, store := range tm.stores { for _, store := range tm.stores {
tokens, err := store.GetTokens() tokens, err := store.GetTokens()
if err != nil { if err != nil {
log.Error("can't fetch tokens from store: %s", err) log.Error("can't fetch tokens from store", "error", err)
continue continue
} }
validTokens := make([]*Token, 0) validTokens := make([]*Token, 0)
@ -220,7 +220,7 @@ func (tm *Manager) GetAllTokens() ([]*Token, error) {
tokens, err := tm.GetCustoms() tokens, err := tm.GetCustoms()
if err != nil { 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...) tokens = append(tm.tokenList, tokens...)