Skip to content

Commit

Permalink
IntentService, AsyncTask: log exceptions at debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanchenko committed Mar 10, 2014
1 parent d295ad2 commit 8e2c8c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected final void onHandleIntent(Intent intent) {
resultReceiver.send(RESULT_OK, data);
}
} catch (Exception e) {
L.w(e);
L.d(e);
if (resultReceiver != null) {
data.putSerializable(EXTRA_EXCEPTION, e);
resultReceiver.send(RESULT_CANCELED, data);
Expand Down
3 changes: 1 addition & 2 deletions droidparts/src/org/droidparts/concurrent/task/AsyncTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected final Pair<Exception, Result> doInBackground(Params... params) {
L.i("Executed %s in %d ms.", getClass().getSimpleName(),
(System.currentTimeMillis() - start));
} catch (Exception e) {
L.w(e);
L.d(e);
ex = e;
}
return new Pair<Exception, Result>(ex, res);
Expand All @@ -73,7 +73,6 @@ protected final void onPostExecute(Pair<Exception, Result> result) {
}
}
} catch (Throwable t) {
L.w(t.getMessage());
L.d(t);
}
}
Expand Down

0 comments on commit 8e2c8c7

Please sign in to comment.