mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 19:24:14 +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,
|
LogOutput: ioutil.Discard,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if os.Getenv("YAMUX_DEBUG") != "" {
|
||||||
|
ymxtpt.LogOutput = os.Stderr
|
||||||
|
}
|
||||||
|
|
||||||
mstpt.AddTransport("/yamux/1.0.0", ymxtpt)
|
mstpt.AddTransport("/yamux/1.0.0", ymxtpt)
|
||||||
|
|
||||||
mstpt.AddTransport("/spdy/3.1.0", spdy.Transport)
|
mstpt.AddTransport("/spdy/3.1.0", spdy.Transport)
|
||||||
|
Reference in New Issue
Block a user