mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
backtest: move info log suppress after sync
This commit is contained in:
parent
9ffed1d5b9
commit
854661bc71
|
@ -127,14 +127,6 @@ var BacktestCmd = &cobra.Command{
|
|||
return err
|
||||
}
|
||||
|
||||
if verboseCnt == 2 {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
} else if verboseCnt > 0 {
|
||||
log.SetLevel(log.InfoLevel)
|
||||
} else {
|
||||
// default mode, disable strategy logging and order executor logging
|
||||
log.SetLevel(log.ErrorLevel)
|
||||
}
|
||||
|
||||
if userConfig.Backtest == nil {
|
||||
return errors.New("backtest config is not defined")
|
||||
|
@ -247,6 +239,15 @@ var BacktestCmd = &cobra.Command{
|
|||
}
|
||||
}
|
||||
|
||||
if verboseCnt == 2 {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
} else if verboseCnt > 0 {
|
||||
log.SetLevel(log.InfoLevel)
|
||||
} else {
|
||||
// default mode, disable strategy logging and order executor logging
|
||||
log.SetLevel(log.ErrorLevel)
|
||||
}
|
||||
|
||||
environ.SetStartTime(startTime)
|
||||
|
||||
// exchangeNameStr is the session name.
|
||||
|
|
Loading…
Reference in New Issue
Block a user