Use Timber.e(Throwable t, String message, Object... args) (#2582)

This commit is contained in:
Yusuke Matsubara 2019-03-15 12:04:25 +09:00 committed by Vivek Maskara
parent c21cc83eb5
commit b5051f9a4f
4 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ public class MediaDataExtractor {
Timber.d("Nominated for deletion: " + deletionStatus);
}
catch (Exception e){
Timber.d(e.getMessage());
Timber.d(e, "Exception during fetching");
}
MediaResult result = mediaWikiApi.fetchMediaByFilename(filename);

View file

@ -107,7 +107,7 @@ public class CampaignsPresenter implements BasePresenter {
}
@Override public void onError(Throwable e) {
Timber.e(e.getMessage(), "could not fetch campaigns");
Timber.e(e, "could not fetch campaigns");
}
});
}

View file

@ -318,7 +318,7 @@ public class ContributionDao {
try {
db.execSQL(query);
} catch (SQLiteException e) {
Timber.e("Exception performing query: " + query + " message: " + e.getMessage());
Timber.e(e, "Exception performing query: " + query);
}
}

View file

@ -66,7 +66,7 @@ public class NearbyPlaces {
try {
places = getFromWikidataQuery(curLatLng, lang, radius);
} catch (InterruptedIOException e) {
Timber.e(e,"exception in fetching nearby places");
Timber.e(e, "exception in fetching nearby places");
return places;
}
Timber.d("%d results at radius: %f", places.size(), radius);