update to github.com/sirupsen/logrus v1.0.0

Signed-off-by: Andrew Pennebaker <apennebaker@datapipe.com>
This commit is contained in:
Andrew Pennebaker
2017-07-06 16:42:09 -05:00
committed by Derek McGowan
parent dd7642fc1c
commit 1d2a079f08
62 changed files with 2001 additions and 235 deletions

21
vendor/github.com/sirupsen/logrus/terminal_solaris.go generated vendored Normal file
View File

@@ -0,0 +1,21 @@
// +build solaris,!appengine
package logrus
import (
"io"
"os"
"golang.org/x/sys/unix"
)
// IsTerminal returns true if the given file descriptor is a terminal.
func IsTerminal(f io.Writer) bool {
switch v := f.(type) {
case *os.File:
_, err := unix.IoctlGetTermios(int(v.Fd()), unix.TCGETA)
return err == nil
default:
return false
}
}