mirror of https://github.com/vacp2p/nim-libp2p.git
fixing log level to avoid sacring users (#452)
This commit is contained in:
parent
a3b21f7cbb
commit
21110636cb
|
@ -187,7 +187,7 @@ method handle*(m: Mplex) {.async, gcsafe.} =
|
|||
except LPStreamEOFError as exc:
|
||||
trace "Stream EOF", m, msg = exc.msg
|
||||
except CatchableError as exc:
|
||||
warn "Unexpected exception in mplex read loop", m, msg = exc.msg
|
||||
debug "Unexpected exception in mplex read loop", m, msg = exc.msg
|
||||
finally:
|
||||
await m.close()
|
||||
trace "Stopped mplex handler", m
|
||||
|
|
|
@ -133,7 +133,7 @@ method readOnce*(s: SecureConn,
|
|||
|
||||
if not isNil(err):
|
||||
if not (err of LPStreamEOFError):
|
||||
warn "Error while reading message from secure connection, closing.",
|
||||
debug "Error while reading message from secure connection, closing.",
|
||||
error=err.name,
|
||||
message=err.msg,
|
||||
connection=s
|
||||
|
|
Loading…
Reference in New Issue