change debug to trace

This commit is contained in:
Diego 2024-07-04 18:32:35 +02:00
parent 05710bc9a7
commit fc96f6f088
No known key found for this signature in database
GPG Key ID: C9DAC9BF68D1F806
1 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ proc waitClosed*(connection: Connection) {.async.} =
await connection.closed.wait()
proc startSending(connection: Connection, remote: TransportAddress) =
debug "Starting sending loop"
trace "Starting sending loop"
proc send {.async.} =
try:
trace "Getting datagram"
@ -56,16 +56,16 @@ proc startSending(connection: Connection, remote: TransportAddress) =
await connection.udp.sendTo(remote, datagram.data)
trace "Sent datagraom"
except TransportError as e:
debug "Failed to send datagram", errorMsg = e.msg
trace "Failed to send datagram", errorMsg = e.msg
trace "Failing connection loop future with error"
connection.loop.fail(e) # This might need to be revisited, see https://github.com/status-im/nim-quic/pull/41 for more details
await connection.drop()
connection.loop = asyncLoop(send)
proc stopSending(connection: Connection) {.async.} =
debug "Stopping sending loop"
trace "Stopping sending loop"
await connection.loop.cancelAndWait()
debug "Stopped sending loop"
trace "Stopped sending loop"
method closeUdp(connection: Connection) {.async, base, upraises: [].} =
discard