TUN-2005: Upgrade logrus

This commit is contained in:
Adam Chalmers
2019-06-26 12:25:58 -05:00
parent c2a3ac3991
commit e255a7da26
31 changed files with 1132 additions and 393 deletions

View File

@@ -0,0 +1,17 @@
// +build !appengine,!js,!windows,!nacl,!plan9
package logrus
import (
"io"
"os"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return isTerminal(int(v.Fd()))
default:
return false
}
}