chore: add logging to group aggregation
This commit is contained in:
@@ -312,6 +312,11 @@ export function publishGroupings(
|
|||||||
asks: aggregatedAsks,
|
asks: aggregatedAsks,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(aggregatedBids.length == 20 || aggregatedAsks.length == 20) {
|
||||||
|
logger.error(`Error aggregating dlob levels: group=${group}, bids=${fullAggregatedBids.length}, asks=${fullAggregatedAsks.length}`)
|
||||||
|
logger.error(`Response: ${JSON.stringify(l2Formatted_grouped20)}`)
|
||||||
|
}
|
||||||
|
|
||||||
redisClient.publish(
|
redisClient.publish(
|
||||||
`${clientPrefix}orderbook_${marketType}_${
|
`${clientPrefix}orderbook_${marketType}_${
|
||||||
marketArgs.marketIndex
|
marketArgs.marketIndex
|
||||||
|
|||||||
Reference in New Issue
Block a user