From aebaeb76f0beb15a0ee715b2e42e8f12f237eb5f Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 4 Dec 2024 17:24:56 +0800 Subject: [PATCH] xalign: set DeviationDetector's logger --- pkg/strategy/xalign/strategy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/strategy/xalign/strategy.go b/pkg/strategy/xalign/strategy.go index 17628fcc5d..234fc5579e 100644 --- a/pkg/strategy/xalign/strategy.go +++ b/pkg/strategy/xalign/strategy.go @@ -454,6 +454,8 @@ func (s *Strategy) CrossRun(ctx context.Context, _ bbgo.OrderExecutionRouter, se return b.Net().Float64() }, ) + + s.deviationDetectors[currency].SetLogger(log) } markets := types.MarketMap{}