mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 18:13:54 +08:00
Add in env var to enable yamux debug logging
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
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