Merge pull request #1736 from c9s/kbearXD/session/remove-log
Some checks are pending
Go / build (1.21, 6.2) (push) Waiting to run
golang-lint / lint (push) Waiting to run

MINOR: [session] remove environment nil validation log
This commit is contained in:
c9s 2024-09-09 16:17:17 +08:00 committed by GitHub
commit bc1715f8ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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