"Could not write to connection" message split between trace and debug due to log size

This commit is contained in:
Giovanni Petrantoni 2020-05-30 23:47:56 +09:00
parent b88bfc05f8
commit 7c9e5c2f7a
3 changed files with 6 additions and 3 deletions

View File

@ -77,7 +77,8 @@ proc writeMsg*(conn: Connection,
# TODO these exceptions are ignored since it's likely that if writes are
# are failing, the underlying connection is already closed - this needs
# 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,
id: uint64,

View File

@ -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
# are failing, the underlying connection is already closed - this needs
# 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.} =
trace "Starting Noise handshake", initiator

View File

@ -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
# are failing, the underlying connection is already closed - this needs
# 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,
hash: string,