Added simple task logging

This commit is contained in:
M66B 2021-08-18 18:40:04 +02:00
parent f14dd13a9c
commit 610c0e625d
1 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,9 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
if (log)
Log.i("Executed task=" + name + " elapsed=" + elapsed + " ms");
} catch (Throwable ex) {
if (!(ex instanceof IllegalArgumentException))
if (ex instanceof IllegalArgumentException)
Log.i(ex);
else
Log.e(ex);
this.ex = ex;
} finally {