Skip to content

Commit

Permalink
xnav: add log with fields
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 14, 2024
1 parent ef63554 commit d9a0544
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/strategy/xnav/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ func (s *Strategy) recordNetAssetValue(ctx context.Context, sessions map[string]
s.Environment.RecordAsset(priceTime, session, assets)

for _, as := range assets {
log.Infof("session %s %s asset = net:%s available:%s",
log.WithFields(logrus.Fields{
"session": sessionName,
"exchange": session.ExchangeName,
}).Infof("session %s %s asset = net:%s available:%s",
sessionName,
as.Currency,
as.NetAsset.String(),
Expand Down

0 comments on commit d9a0544

Please sign in to comment.