From 9dd7e8a772a730072251b9634f22ec34774a2f7d Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Wed, 27 Sep 2023 21:52:29 -0600 Subject: [PATCH] cmd: fix market sync log --- cmd/revenued/market.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }