Skip to content

Commit

Permalink
Merge pull request #11 from uselagoon/debug-env
Browse files Browse the repository at this point in the history
Don't spew junk to stderr
  • Loading branch information
smlx authored Feb 3, 2022
2 parents 8bcc765 + 2e87c2f commit e79eb10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/ssh-portal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"github.com/alecthomas/kong"
"github.com/moby/spdystream"
"go.uber.org/zap"
)

Expand All @@ -23,6 +24,8 @@ func main() {
var err error
if cli.Debug {
log, err = zap.NewDevelopment(zap.AddStacktrace(zap.ErrorLevel))
// work around https://github.com/moby/spdystream/issues/87
spdystream.DEBUG = ""
} else {
log, err = zap.NewProduction()
}
Expand Down

0 comments on commit e79eb10

Please sign in to comment.