Update dependency sirupsen/logrus

This commit is contained in:
Odin Ugedal
2019-06-20 20:40:38 +02:00
parent 2bcdb944f0
commit 7a7d8c21e7
32 changed files with 393 additions and 364 deletions

View File

@@ -1,18 +1,16 @@
// +build !appengine,!js,!windows
// +build !appengine,!js,!windows,!nacl,!plan9
package logrus
import (
"io"
"os"
"golang.org/x/crypto/ssh/terminal"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return terminal.IsTerminal(int(v.Fd()))
return isTerminal(int(v.Fd()))
default:
return false
}