Skip to content

Commit

Permalink
cmd: fix market sync log
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Sep 28, 2023
1 parent 85aac27 commit 9dd7e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/revenued/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 9dd7e8a

Please sign in to comment.