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,13 @@
// +build linux aix
package logrus
import "golang.org/x/sys/unix"
const ioctlReadTermios = unix.TCGETS
func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}