Skip to content

Commit

Permalink
enabled detailed logging of errors in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
benkuly committed Nov 23, 2020
1 parent 03aab61 commit ae924b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

group = "net.folivo"
version = "0.5.1"
version = "0.5.2"
java.sourceCompatibility = JavaVersion.VERSION_11

tasks.withType<org.springframework.boot.gradle.tasks.bundling.BootJar>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ class AndroidSmsProviderLauncher(private val androidSmsProvider: AndroidSmsProvi
private fun logReceiveAttempt(): RetryPolicy<Throwable> {
return {
LOG.error("could not retrieve messages from android device or process them: ${reason.message}")
LOG.debug("detailed error", reason)
ContinueRetrying
}
}

private fun logSendAttempt(): RetryPolicy<Throwable> {
return {
LOG.error("could not send messages to android device: ${reason.message}")
LOG.debug("detailed error", reason)
ContinueRetrying
}
}
Expand Down

0 comments on commit ae924b2

Please sign in to comment.