mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 03:28:25 +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:
@ -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)
|
||||
|
Reference in New Issue
Block a user