diff --git a/logger.go b/logger.go index ad442d0c..b4743a7f 100644 --- a/logger.go +++ b/logger.go @@ -8,7 +8,6 @@ import ( "fmt" "io" "os" - "runtime" "time" "golang.org/x/crypto/ssh/terminal" @@ -49,11 +48,8 @@ func Logger() HandlerFunc { // Example: os.Stdout, a file opened in write mode, a socket... func LoggerWithWriter(out io.Writer, notlogged ...string) HandlerFunc { isTerm := true - - if runtime.GOOS != "appengine" && runtime.GOOS != "netbsd" && runtime.GOOS != "openbsd" { - if outFile, ok := out.(*os.File); ok { - isTerm = terminal.IsTerminal(int(outFile.Fd())) - } + if outFile, ok := out.(*os.File); ok { + isTerm = terminal.IsTerminal(int(outFile.Fd())) } var skip map[string]struct{}