grid2: fix Warn by using Warnf

This commit is contained in:
c9s 2023-03-10 17:00:09 +08:00
parent fd2032b825
commit c6609927f2
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -523,7 +523,7 @@ func (s *Strategy) handleOrderFilled(o types.Order) {
}
if s.filledOrderIDMap.Exists(o.OrderID) {
s.logger.Warn("duplicated id (%d) of filled order detected", o.OrderID)
s.logger.Warnf("duplicated id (%d) of filled order detected", o.OrderID)
return
}
s.filledOrderIDMap.Add(o)
@ -2140,4 +2140,4 @@ func queryOpenOrdersUntilSuccessful(ctx context.Context, ex types.Exchange, symb
err = generalBackoff(ctx, op)
return openOrders, err
}
}