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 97eed0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/revenued/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ 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))
log.Info("added market data", zap.Time("timestamp", rate.Timestamp))
}
}

Expand Down

0 comments on commit 97eed0d

Please sign in to comment.