Skip to content

Commit

Permalink
Improve log message
Browse files Browse the repository at this point in the history
  • Loading branch information
szysas committed Aug 23, 2024
1 parent 9b2fcbd commit cb7465b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class SslConfig(
mbedtls_ssl_set_bio(sslContext, Pointer.NULL, SendCallback, null, ReceiveCallback)

return SslSession(this, sslContext, cid, true).also {
logger.info("[{}] Reconnected {}", peerAddress, it)
logger.info("[{}] [{}] DTLS session reloaded {}", peerAddress, cid, it)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class DtlsServer(
fun timeout() {
sessions.remove(peerAddress, this)
storeAndClose()
logger.info("[{}] [CID:{}] DTLS connection expired", peerAddress, ownCidHex)
logger.info("[{}] [CID:{}] DTLS session stored after idle", peerAddress, ownCidHex)
reportSessionFinished(DtlsSessionLifecycleCallbacks.Reason.EXPIRED)
}

Expand Down

0 comments on commit cb7465b

Please sign in to comment.