Skip to content

Commit

Permalink
fix: informative error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
d1snin committed Oct 16, 2024
1 parent 6a82fae commit 82f1be4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public suspend fun HttpClient.webSocketEvents(
withRetries(onError = {
logger.w {
"Error opening WS session: ${it.message}"

it.printStackTrace()
}
}) {
webSocket(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public suspend inline fun <reified T> DefaultClientWebSocketSession.receiveWebSo
withRetries(continuous = true, onError = {
EventReceiverLog.w {
"Error receiving web socket events: ${it.message}"

it.printStackTrace()
}
}) {
val event = receiveWebSocketEvent<T>()
Expand Down

0 comments on commit 82f1be4

Please sign in to comment.