Skip to content

Commit

Permalink
Fix swallowed exceptions when storing session
Browse files Browse the repository at this point in the history
  • Loading branch information
szysas committed Aug 22, 2023
1 parent 92a2130 commit 739a7b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ class DtlsServer(
sessionStartTimestamp = sessionStartTimestamp
)
storeSession(ctx.ownCid, session)
} catch (ex: SslException) {
logger.warn("[{}] [CID:{}] DTLS failed to store session: {}", peerAddress, ownCidHex, ex.message)
} catch (ex: Exception) {
logger.error("[{}] [CID:{}] DTLS failed to store session: {}", peerAddress, ownCidHex, ex.message)
}
} else {
close()
Expand Down

0 comments on commit 739a7b5

Please sign in to comment.