re-vendor sirupsen/logrus

This commit is contained in:
Sargun Dhillon
2019-05-06 17:25:48 -07:00
parent 740bec9ea0
commit 5ef5910b2f
20 changed files with 1999 additions and 0 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
}