Skip to content

Commit

Permalink
Revert "Merge pull request #753 from gin-gonic/bug"
Browse files Browse the repository at this point in the history
This reverts commit 556287f, reversing
changes made to 32cab50.
  • Loading branch information
javierprovecho committed Dec 3, 2016
1 parent 556287f commit 63b5d1c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"fmt"
"io"
"os"
"runtime"
"time"

"golang.org/x/crypto/ssh/terminal"
Expand Down Expand Up @@ -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{}
Expand Down

0 comments on commit 63b5d1c

Please sign in to comment.