From f4991dbbfa68420a7b907642892cbdeb57d9d180 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 10 May 2022 01:09:40 +0800 Subject: [PATCH] fix time printing --- pkg/cmd/backtest.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/backtest.go b/pkg/cmd/backtest.go index 229fa4e61..7b294aa99 100644 --- a/pkg/cmd/backtest.go +++ b/pkg/cmd/backtest.go @@ -418,11 +418,12 @@ var BacktestCmd = &cobra.Command{ trader.Graceful.Shutdown(shutdownCtx) cancelShutdown() - log.Infof("START TIME: %s", startTime.Format(time.RFC1123)) - log.Infof("END TIME: %s", endTime.Format(time.RFC1123)) // put the logger back to print the pnl log.SetLevel(log.InfoLevel) + + log.Infof("START TIME: %s", startTime.Format(time.RFC1123)) + log.Infof("END TIME: %s", endTime.Format(time.RFC1123)) for _, session := range environ.Sessions() { backtestExchange := session.Exchange.(*backtest.Exchange) exchangeName := session.Exchange.Name().String()