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

@@ -0,0 +1,11 @@
package logrus
import (
"golang.org/x/sys/unix"
)
// IsTerminal returns true if the given file descriptor is a terminal.
func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermio(fd, unix.TCGETA)
return err == nil
}