Skip to content

Commit d5a5fd5

Browse files
thxCodeAlena Prokharchyk
authored and
Alena Prokharchyk
committed
Fix incorrect log print on Windows
Issues: - rancher#601
1 parent f69628f commit d5a5fd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"os"
55
"regexp"
66

7+
"github.com/mattn/go-colorable"
78
"github.com/rancher/rke/cmd"
89
"github.com/sirupsen/logrus"
910
"github.com/urfave/cli"
@@ -13,6 +14,8 @@ var VERSION = "v0.0.12-dev"
1314
var released = regexp.MustCompile(`^v[0-9]+\.[0-9]+\.[0-9]+$`)
1415

1516
func main() {
17+
logrus.SetOutput(colorable.NewColorableStdout())
18+
1619
if err := mainErr(); err != nil {
1720
logrus.Fatal(err)
1821
}

0 commit comments

Comments
 (0)