Update to latest logrus package

This commit is contained in:
Tobie Morgan Hitchcock 2017-11-15 18:18:38 +00:00
parent dfe89f7901
commit a4d6a0801a

View file

@ -26,6 +26,8 @@ import (
"github.com/mgutz/ansi"
"github.com/Sirupsen/logrus"
"golang.org/x/crypto/ssh/terminal"
)
const clear = ansi.Reset
@ -36,7 +38,7 @@ var (
)
func init() {
isTerminal = logrus.IsTerminal(os.Stdout)
isTerminal = terminal.IsTerminal(int(os.Stdout.Fd()))
isColoured = isTerminal && (runtime.GOOS != "windows")
}