client/rpc: add extra logging for order submission
@@ -900,6 +900,8 @@ func (s *rpcServer) SubmitOrder(ctx context.Context,
// provided, then return this as a nice string instead of an
// error type.
if userErr, ok := err.(*order.UserError); ok {
+ log.Warnf("Invalid order details: %v", userErr)
+
return &clmrpc.SubmitOrderResponse{
Details: &clmrpc.SubmitOrderResponse_InvalidOrder{
InvalidOrder: userErr.Details,
@@ -913,6 +915,8 @@ func (s *rpcServer) SubmitOrder(ctx context.Context,
"%v", err)
}
+ log.Infof("New order submitted: nonce=%v, type=%v", o.Nonce(), o.Type())
+
// ServerOrder is accepted.
return &clmrpc.SubmitOrderResponse{
Details: &clmrpc.SubmitOrderResponse_Accepted{
