use stderr for verbose log

This commit is contained in:
c9s 2021-12-07 14:45:20 +08:00
parent ca3f438288
commit 132fe893e1

View File

@ -183,7 +183,7 @@ var BacktestCmd = &cobra.Command{
var prevKLine types.KLine
for k := range klineC {
if verboseCnt > 1 {
fmt.Print(".")
fmt.Fprint(os.Stderr, ".")
}
if prevKLine != emptyKLine {
@ -200,7 +200,7 @@ var BacktestCmd = &cobra.Command{
}
if verboseCnt > 1 {
fmt.Println()
fmt.Fprintln(os.Stderr)
}
if err := <-errC; err != nil {