From 63b5d1c4c885a0cf257b5977e4f019e9f9458137 Mon Sep 17 00:00:00 2001 From: Javier Provecho Fernandez Date: Sat, 3 Dec 2016 22:04:35 +0100 Subject: [PATCH] Revert "Merge pull request #753 from gin-gonic/bug" This reverts commit 556287ff0856a5ad1f9a1b493c188cabeceba929, reversing changes made to 32cab500ecc71d2975f5699c8a65c6debb29cfbe. --- logger.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/logger.go b/logger.go index ad442d0..b4743a7 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{}