Skip to content

Commit

Permalink
OrderManager: Capitalise error message
Browse files Browse the repository at this point in the history
On failure to add to orderstore, capitalise the error message

Co-authored-by: Adrian Gallagher <[email protected]>
  • Loading branch information
gbjk and thrasher- authored Oct 5, 2023
1 parent 7f47299 commit c8235a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/order_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ func (m *OrderManager) processSubmittedOrder(newOrderResp *order.SubmitResponse)
detail = m.orderStore.getByDetail(detail)
} else if err != nil {
// Non-fatal error: Unable to store order, but error does not need to be returned to caller
log.Errorf(log.OrderMgr, "unable to add %v order %v to orderStore: %s", detail.Exchange, detail.OrderID, err)
log.Errorf(log.OrderMgr, "Unable to add %v order %v to orderStore: %s", detail.Exchange, detail.OrderID, err)
}

msg := fmt.Sprintf("Exchange %s submitted order ID=%v [Ours: %v] pair=%v price=%v amount=%v quoteAmount=%v side=%v type=%v for time %v.",
Expand Down

0 comments on commit c8235a5

Please sign in to comment.