1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 19:24:14 +08:00

Merge pull request #3668 from ipfs/feat/yamux-debugging

Add in env var to enable yamux debug logging
This commit is contained in:
Jeromy Johnson
2017-02-09 09:03:06 -08:00
committed by GitHub

View File

@ -234,6 +234,10 @@ func makeSmuxTransport(mplexExp bool) smux.Transport {
LogOutput: ioutil.Discard,
}
if os.Getenv("YAMUX_DEBUG") != "" {
ymxtpt.LogOutput = os.Stderr
}
mstpt.AddTransport("/yamux/1.0.0", ymxtpt)
mstpt.AddTransport("/spdy/3.1.0", spdy.Transport)