Skip to content

Commit

Permalink
fix: don't spew junk to stderr
Browse files Browse the repository at this point in the history
work around moby/spdystream#87
  • Loading branch information
smlx committed Feb 3, 2022
1 parent 8bcc765 commit 2e87c2f
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 2e87c2f

Please sign in to comment.