We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32cab50 commit b26d956Copy full SHA for b26d956
logger.go
@@ -8,6 +8,7 @@ import (
8
"fmt"
9
"io"
10
"os"
11
+ "runtime"
12
"time"
13
14
"golang.org/x/crypto/ssh/terminal"
@@ -48,8 +49,11 @@ func Logger() HandlerFunc {
48
49
// Example: os.Stdout, a file opened in write mode, a socket...
50
func LoggerWithWriter(out io.Writer, notlogged ...string) HandlerFunc {
51
isTerm := true
- if outFile, ok := out.(*os.File); ok {
52
- isTerm = terminal.IsTerminal(int(outFile.Fd()))
+
53
+ if runtime.GOOS != "appengine" && runtime.GOOS != "netbsd" && runtime.GOOS != "openbsd" {
54
+ if outFile, ok := out.(*os.File); ok {
55
+ isTerm = terminal.IsTerminal(int(outFile.Fd()))
56
+ }
57
}
58
59
var skip map[string]struct{}
0 commit comments