From 80a2bf9d822f331e97ec9d8d687dfd7b1ddfd527 Mon Sep 17 00:00:00 2001 From: kbearXD Date: Mon, 9 Sep 2024 16:03:05 +0800 Subject: [PATCH] MINOR: [session] remove environment nil validation log --- pkg/bbgo/session.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/bbgo/session.go b/pkg/bbgo/session.go index 8c31fd1..16518a0 100644 --- a/pkg/bbgo/session.go +++ b/pkg/bbgo/session.go @@ -406,11 +406,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