Skip to content

Commit

Permalink
Fix incorrect log print on Windows
Browse files Browse the repository at this point in the history
Issues:
    - #601
  • Loading branch information
thxCode authored and Alena Prokharchyk committed Nov 30, 2018
1 parent f69628f commit d5a5fd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"os"
"regexp"

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

func main() {
logrus.SetOutput(colorable.NewColorableStdout())

if err := mainErr(); err != nil {
logrus.Fatal(err)
}
Expand Down

0 comments on commit d5a5fd5

Please sign in to comment.