mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
grid2: define strategy field in the logger entry
This commit is contained in:
parent
e73081d6ba
commit
88116440ba
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user