mirror of https://github.com/M66B/FairEmail.git
Added simple task logging
This commit is contained in:
parent
f14dd13a9c
commit
610c0e625d
|
@ -167,7 +167,9 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||||
if (log)
|
if (log)
|
||||||
Log.i("Executed task=" + name + " elapsed=" + elapsed + " ms");
|
Log.i("Executed task=" + name + " elapsed=" + elapsed + " ms");
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
if (!(ex instanceof IllegalArgumentException))
|
if (ex instanceof IllegalArgumentException)
|
||||||
|
Log.i(ex);
|
||||||
|
else
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
this.ex = ex;
|
this.ex = ex;
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue