diff --git a/cmd/revenued/market.go b/cmd/revenued/market.go index 894fc37..5b74017 100644 --- a/cmd/revenued/market.go +++ b/cmd/revenued/market.go @@ -61,7 +61,7 @@ func syncMarketData(ctx context.Context, store *sqlite.Store, log *zap.Logger) { } if err := store.AddMarketData(rate.Rates["usd"].InexactFloat64(), rate.Rates["eur"].InexactFloat64(), rate.Rates["btc"].InexactFloat64(), rate.Timestamp); err != nil { - log.Warn("failed to add market data", zap.Error(err), zap.Time("timestamp", timestamp)) + log.Warn("failed to add market data", zap.Error(err), zap.Time("timestamp", rate.Timestamp)) } else { log.Info("added market data", zap.Time("timestamp", timestamp)) }