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/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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue