From 2e87c2f575b700ad0d560f4af73e21b7ef1bb994 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Thu, 3 Feb 2022 09:56:45 +0800 Subject: [PATCH] fix: don't spew junk to stderr work around https://github.com/moby/spdystream/issues/87 --- cmd/ssh-portal/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/ssh-portal/main.go b/cmd/ssh-portal/main.go index 64c18e17..203578ac 100644 --- a/cmd/ssh-portal/main.go +++ b/cmd/ssh-portal/main.go @@ -2,6 +2,7 @@ package main import ( "github.com/alecthomas/kong" + "github.com/moby/spdystream" "go.uber.org/zap" ) @@ -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() }