From 88116440ba356ef565d0c9d62f16a00bb22d0155 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 15 Feb 2023 17:38:48 +0800 Subject: [PATCH] grid2: define strategy field in the logger entry --- pkg/strategy/grid2/strategy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/strategy/grid2/strategy.go b/pkg/strategy/grid2/strategy.go index bd4a3ef2a..28052ef93 100644 --- a/pkg/strategy/grid2/strategy.go +++ b/pkg/strategy/grid2/strategy.go @@ -1351,6 +1351,7 @@ func (s *Strategy) Run(ctx context.Context, _ bbgo.OrderExecutor, session *bbgo. } s.LogFields["symbol"] = s.Symbol + s.LogFields["strategy"] = ID s.logger = log.WithFields(s.LogFields) if s.OrderGroupID == 0 {