From 6ea368c383ccc19678623c51d8e4ecbbdb0a64ac Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 20 Feb 2018 23:41:09 +0100 Subject: Move Sirupsen => sirupsen --- .../sirupsen/logrus/terminal_check_notappengine.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go (limited to 'vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go') diff --git a/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go b/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go new file mode 100644 index 00000000..116bcb4e --- /dev/null +++ b/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go @@ -0,0 +1,19 @@ +// +build !appengine + +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())) + default: + return false + } +} -- cgit v1.2.3