mirror of https://github.com/vacp2p/nim-libp2p.git
"Could not write to connection" message split between trace and debug due to log size
This commit is contained in:
parent
b88bfc05f8
commit
7c9e5c2f7a
|
@ -77,7 +77,8 @@ proc writeMsg*(conn: Connection,
|
||||||
# TODO these exceptions are ignored since it's likely that if writes are
|
# TODO these exceptions are ignored since it's likely that if writes are
|
||||||
# are failing, the underlying connection is already closed - this needs
|
# are failing, the underlying connection is already closed - this needs
|
||||||
# more cleanup though
|
# more cleanup though
|
||||||
debug "Could not write to connection", msg = exc.msg
|
debug "Could not write to connection", error = exc.name
|
||||||
|
trace "Could not write to connection - verbose", msg = exc.msg
|
||||||
|
|
||||||
proc writeMsg*(conn: Connection,
|
proc writeMsg*(conn: Connection,
|
||||||
id: uint64,
|
id: uint64,
|
||||||
|
|
|
@ -463,7 +463,8 @@ method write*(sconn: NoiseConnection, message: seq[byte]): Future[void] {.async.
|
||||||
# TODO these exceptions are ignored since it's likely that if writes are
|
# TODO these exceptions are ignored since it's likely that if writes are
|
||||||
# are failing, the underlying connection is already closed - this needs
|
# are failing, the underlying connection is already closed - this needs
|
||||||
# more cleanup though
|
# more cleanup though
|
||||||
debug "Could not write to connection", msg = exc.msg
|
debug "Could not write to connection", error = exc.name
|
||||||
|
trace "Could not write to connection - verbose", msg = exc.msg
|
||||||
|
|
||||||
method handshake*(p: Noise, conn: Connection, initiator: bool = false): Future[SecureConn] {.async.} =
|
method handshake*(p: Noise, conn: Connection, initiator: bool = false): Future[SecureConn] {.async.} =
|
||||||
trace "Starting Noise handshake", initiator
|
trace "Starting Noise handshake", initiator
|
||||||
|
|
|
@ -244,7 +244,8 @@ method write*(sconn: SecioConn, message: seq[byte]) {.async.} =
|
||||||
# TODO these exceptions are ignored since it's likely that if writes are
|
# TODO these exceptions are ignored since it's likely that if writes are
|
||||||
# are failing, the underlying connection is already closed - this needs
|
# are failing, the underlying connection is already closed - this needs
|
||||||
# more cleanup though
|
# more cleanup though
|
||||||
debug "Could not write to connection", msg = exc.msg
|
debug "Could not write to connection", error = exc.name
|
||||||
|
trace "Could not write to connection - verbose", msg = exc.msg
|
||||||
|
|
||||||
proc newSecioConn(conn: Connection,
|
proc newSecioConn(conn: Connection,
|
||||||
hash: string,
|
hash: string,
|
||||||
|
|
Loading…
Reference in New Issue