mirror of https://github.com/BOINC/boinc.git
Update BOINCUtils.kt
Fix warning print to log an exception. (do it in the right way).
This commit is contained in:
parent
351c3de01d
commit
5af0d12cd4
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue