Skip to content

Commit

Permalink
Merge pull request #1736 from c9s/kbearXD/session/remove-log
Browse files Browse the repository at this point in the history
MINOR: [session] remove environment nil validation log
  • Loading branch information
c9s authored Sep 9, 2024
2 parents f361b19 + f444864 commit bc1715f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/bbgo/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,7 @@ func (session *ExchangeSession) initSymbol(ctx context.Context, environ *Environ
return fmt.Errorf("market %s is not defined", symbol)
}

if environ == nil {
session.logger.Info("environment is nil")
} else {
session.logger.Infof("environment config: %+v", environ.environmentConfig)
}
session.logger.Infof("environment config: %+v", environ.environmentConfig)

disableMarketDataStore := environ.environmentConfig != nil && environ.environmentConfig.DisableMarketDataStore
disableSessionTradeBuffer := environ.environmentConfig != nil && environ.environmentConfig.DisableSessionTradeBuffer
Expand Down

0 comments on commit bc1715f

Please sign in to comment.