Skip to content

Commit

Permalink
add name attribute to aggregator log
Browse files Browse the repository at this point in the history
  • Loading branch information
Intizar-T committed Jul 22, 2024
1 parent 3fd3c04 commit ad2a2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (n *Aggregator) HandlePriceDataMessage(ctx context.Context, msg raft.Messag

n.CollectedPrices[priceDataMessage.RoundID] = append(n.CollectedPrices[priceDataMessage.RoundID], priceDataMessage.PriceData)
if len(n.CollectedPrices[priceDataMessage.RoundID]) >= n.Raft.SubscribersCount()+1 {
log.Debug().Str("Player", "Aggregator").Any("collected prices", n.CollectedPrices[priceDataMessage.RoundID]).Int32("roundId", priceDataMessage.RoundID).Msg("collected prices")
log.Debug().Str("Player", "Aggregator").Str("Name", n.Name).Any("collected prices", n.CollectedPrices[priceDataMessage.RoundID]).Int32("roundId", priceDataMessage.RoundID).Msg("collected prices")
defer delete(n.CollectedPrices, priceDataMessage.RoundID)
defer delete(n.SyncedTimes, priceDataMessage.RoundID)
filteredCollectedPrices := FilterNegative(n.CollectedPrices[priceDataMessage.RoundID])
Expand Down

0 comments on commit ad2a2b6

Please sign in to comment.