Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/net/http2: #33009

Closed
kjiregt845gj opened this issue Jul 9, 2019 · 1 comment
Closed

x/net/http2: #33009

kjiregt845gj opened this issue Jul 9, 2019 · 1 comment

Comments

@kjiregt845gj
Copy link

What version of Go are you using (go version)?

go version go1.10.6 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GORACE=""
GOROOT="/usr/lib/golang"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build117311720=/tmp/go-build -gno-record-gcc-switches"

What did you do?

http2 works and GODEBUG=http2server=0 does disable http2.
But GODEBUG=http2debug=1 and GODEBUG=http2debug=2 don't produce any output and the output of them is what I need.
The http2 debug mode should log the output to stdout (the screen) or is it saved in some log file?

What did you expect to see?

http2 debug data

What did you see instead?

Nothing

@kjiregt845gj
Copy link
Author

An update: the flag works perfectly when I set up a simple go http2 server, it just doesn't work for Caddy

@golang golang locked and limited conversation to collaborators Jul 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants