print unhandled order status

This commit is contained in:
c9s 2021-05-09 19:44:43 +08:00
parent ff90a704d9
commit e06310da26

View File

@ -53,6 +53,9 @@ func (b *LocalActiveOrderBook) orderUpdateHandler(order types.Order) {
case types.OrderStatusCanceled, types.OrderStatusRejected:
log.Debugf("[LocalActiveOrderBook] order status %s, removing %d...", order.Status, order.OrderID)
b.Remove(order)
default:
log.Warnf("unhandled order status: %s", order.Status)
}
}