added token symbol to UpdateMethodTypeStatic log

This commit is contained in:
Mikelle
2021-03-25 21:42:50 +03:00
parent 7b6dd0899e
commit 561f491d53

View File

@@ -174,7 +174,8 @@ func (p *PriceUpdater) UpdatePrices(ctx context.Context) {
case UpdateMethodTypeStatic: case UpdateMethodTypeStatic:
tokenPrice = token.StaticValue tokenPrice = token.StaticValue
if tokenPrice == float64(0) { if tokenPrice == float64(0) {
log.Warn("token price is set to 0. Probably StaticValue is not put in the configuration file") log.Warn("token price is set to 0. Probably StaticValue is not put in the configuration file,",
"token", token.Symbol)
} }
case UpdateMethodTypeIgnore: case UpdateMethodTypeIgnore:
continue continue