From e8bd370aa2cc78c8a069d083df240640696658fc Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 24 Aug 2024 12:13:44 +0800 Subject: [PATCH] xmaker: remove duplicated log entry --- pkg/strategy/xmaker/strategy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/strategy/xmaker/strategy.go b/pkg/strategy/xmaker/strategy.go index f647f7ec6..3eea15d31 100644 --- a/pkg/strategy/xmaker/strategy.go +++ b/pkg/strategy/xmaker/strategy.go @@ -587,7 +587,6 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) { s.hedgeErrorRateReservation = nil } - log.Infof("submitting %s hedge order %s %v", s.Symbol, side.String(), quantity) bbgo.Notify("Submitting %s hedge order %s %v", s.Symbol, side.String(), quantity) submitOrders := []types.SubmitOrder{ @@ -603,7 +602,7 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) { formattedOrders, err := s.sourceSession.FormatOrders(submitOrders) if err != nil { - log.WithError(err).Errorf("unable to format orders") + log.WithError(err).Errorf("unable to format hedge orders") return }