From ae924b291903e618b48991d15f6be4d93b232230 Mon Sep 17 00:00:00 2001 From: benkuly <12199167+benkuly@users.noreply.github.com> Date: Mon, 23 Nov 2020 13:36:30 +0100 Subject: [PATCH] enabled detailed logging of errors in debug mode --- build.gradle.kts | 2 +- .../bridge/sms/provider/android/AndroidSmsProviderLauncher.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4c71cae..df14d65 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,7 +17,7 @@ repositories { } group = "net.folivo" -version = "0.5.1" +version = "0.5.2" java.sourceCompatibility = JavaVersion.VERSION_11 tasks.withType() { diff --git a/src/main/kotlin/net/folivo/matrix/bridge/sms/provider/android/AndroidSmsProviderLauncher.kt b/src/main/kotlin/net/folivo/matrix/bridge/sms/provider/android/AndroidSmsProviderLauncher.kt index 9faa620..01ece26 100644 --- a/src/main/kotlin/net/folivo/matrix/bridge/sms/provider/android/AndroidSmsProviderLauncher.kt +++ b/src/main/kotlin/net/folivo/matrix/bridge/sms/provider/android/AndroidSmsProviderLauncher.kt @@ -41,6 +41,7 @@ class AndroidSmsProviderLauncher(private val androidSmsProvider: AndroidSmsProvi private fun logReceiveAttempt(): RetryPolicy { return { LOG.error("could not retrieve messages from android device or process them: ${reason.message}") + LOG.debug("detailed error", reason) ContinueRetrying } } @@ -48,6 +49,7 @@ class AndroidSmsProviderLauncher(private val androidSmsProvider: AndroidSmsProvi private fun logSendAttempt(): RetryPolicy { return { LOG.error("could not send messages to android device: ${reason.message}") + LOG.debug("detailed error", reason) ContinueRetrying } }