Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Print stack trace to log if exception is thrown during callback acces…
Browse files Browse the repository at this point in the history
…s test
  • Loading branch information
serebit committed May 16, 2021
1 parent 5cf4e6e commit a72e532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/TwitchClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TwitchClient private constructor(
val status = try {
httpClient.get<HttpResponse>("https://$callbackUri/") { expectSuccess = false }.status
} catch (ex: Throwable) {
return@repeat logger.info("Attempt $it: Callback URI $callbackUri is inaccessible. When testing callback, an exception was thrown: ${ex.localizedMessage}")
return@repeat logger.info("Attempt $it: Callback URI $callbackUri is inaccessible. When testing callback, an exception was thrown: ${ex.stackTraceToString()}")
}

if (status == expectedStatus) {
Expand Down

0 comments on commit a72e532

Please sign in to comment.