diff --git a/android/BOINC/app/src/main/java/edu/berkeley/boinc/utils/BOINCUtils.kt b/android/BOINC/app/src/main/java/edu/berkeley/boinc/utils/BOINCUtils.kt index 1486e2cc3c..9bac09f8d6 100644 --- a/android/BOINC/app/src/main/java/edu/berkeley/boinc/utils/BOINCUtils.kt +++ b/android/BOINC/app/src/main/java/edu/berkeley/boinc/utils/BOINCUtils.kt @@ -118,8 +118,9 @@ class TaskRunner(private val callback: ((V) -> Unit)? , private val callable: callback?.invoke(result) result } catch (e: Exception) { - Log.d(Logging.TAG, e.message) - e.printStackTrace() + if (Logging.ERROR) { + Log.e(Logging.TAG, "BOINCUtils.TaskRunner error: ", e) + } throw e } }