Browse Source

Merge pull request #516 from hermeznetwork/feature/priceserrwarn

Use Warn instead of Error on get prices error
feature/sql-semaphore1
arnau 3 years ago
committed by GitHub
parent
commit
7559991f7f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      priceupdater/priceupdater.go

+ 1
- 1
priceupdater/priceupdater.go

@ -94,7 +94,7 @@ func (p *PriceUpdater) UpdatePrices(ctx context.Context) {
return return
} }
if err != nil { if err != nil {
log.Errorw("token price not updated (get error)",
log.Warnw("token price not updated (get error)",
"err", err, "token", tokenSymbol, "apiType", p.apiType) "err", err, "token", tokenSymbol, "apiType", p.apiType)
} }
if err = p.db.UpdateTokenValue(tokenSymbol, tokenPrice); err != nil { if err = p.db.UpdateTokenValue(tokenSymbol, tokenPrice); err != nil {

Loading…
Cancel
Save