mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-23 10:08:13 +00:00
do not log yamux buffers without sanitization (trace log level) (#1046)
This commit is contained in:
parent
1609fd7197
commit
d43c5feab0
@ -538,7 +538,7 @@ method handle*(m: Yamux) {.async.} =
|
||||
if header.length > 0:
|
||||
var buffer = newSeqUninitialized[byte](header.length)
|
||||
await m.connection.readExactly(addr buffer[0], int(header.length))
|
||||
trace "Msg Rcv", msg=string.fromBytes(buffer)
|
||||
trace "Msg Rcv", msg=shortLog(buffer)
|
||||
await channel.gotDataFromRemote(buffer)
|
||||
|
||||
if MsgFlags.Fin in header.flags:
|
||||
|
Loading…
x
Reference in New Issue
Block a user