MINOR: [session] remove environment nil validation log

This commit is contained in:
kbearXD 2024-09-09 16:03:05 +08:00 committed by lychiyu
parent b3cc53dc42
commit 80a2bf9d82

View File

@ -406,11 +406,7 @@ func (session *ExchangeSession) initSymbol(ctx context.Context, environ *Environ
return fmt.Errorf("market %s is not defined", symbol) return fmt.Errorf("market %s is not defined", symbol)
} }
if environ == nil { session.logger.Infof("environment config: %+v", environ.environmentConfig)
session.logger.Info("environment is nil")
} else {
session.logger.Infof("environment config: %+v", environ.environmentConfig)
}
disableMarketDataStore := environ.environmentConfig != nil && environ.environmentConfig.DisableMarketDataStore disableMarketDataStore := environ.environmentConfig != nil && environ.environmentConfig.DisableMarketDataStore
disableSessionTradeBuffer := environ.environmentConfig != nil && environ.environmentConfig.DisableSessionTradeBuffer disableSessionTradeBuffer := environ.environmentConfig != nil && environ.environmentConfig.DisableSessionTradeBuffer