Update BOINCUtils.kt

Fix warning print to log an exception. (do it in the right way).
This commit is contained in:
talregev 2021-03-08 22:47:29 +02:00 committed by GitHub
parent 351c3de01d
commit 5af0d12cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -118,8 +118,9 @@ class TaskRunner<V>(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
}
}