grid2: define strategy field in the logger entry

This commit is contained in:
c9s 2023-02-15 17:38:48 +08:00
parent e73081d6ba
commit 88116440ba
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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 {