Update to latest logrus package
This commit is contained in:
parent
dfe89f7901
commit
a4d6a0801a
1 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,8 @@ import (
|
||||||
"github.com/mgutz/ansi"
|
"github.com/mgutz/ansi"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
|
|
||||||
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
)
|
)
|
||||||
|
|
||||||
const clear = ansi.Reset
|
const clear = ansi.Reset
|
||||||
|
@ -36,7 +38,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
isTerminal = logrus.IsTerminal(os.Stdout)
|
isTerminal = terminal.IsTerminal(int(os.Stdout.Fd()))
|
||||||
isColoured = isTerminal && (runtime.GOOS != "windows")
|
isColoured = isTerminal && (runtime.GOOS != "windows")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue