bbgo: reduce logs

This commit is contained in:
c9s 2023-12-11 17:59:02 +08:00
parent 8c13092d8b
commit 9f14215ce8
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -392,10 +392,10 @@ func (b *ActiveOrderBook) add(order types.Order) {
if pendingOrder, ok := b.pendingOrderUpdates.Get(order.OrderID); ok {
// if the pending order update time is newer than the adding order
// we should use the pending order rather than the adding order.
// if pending order is older, than we should add the new one, and drop the pending order
log.Infof("found pending order update")
// if the pending order is older, then we should add the new one, and drop the pending order
log.Debugf("found pending order update: %+v", pendingOrder)
if isNewerOrderUpdate(pendingOrder, order) {
log.Infof("pending order update is newer")
log.Infof("pending order update is newer: %+v", pendingOrder)
order = pendingOrder
}