Skip to content

Commit 7366dab

Browse files
authored
Log errors by default (#1712)
2 parents 66542b3 + a6bf7fb commit 7366dab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

database/src/main/java/com/firebase/ui/database/paging/FirebaseRecyclerPagingAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ public void onBindViewHolder(@NonNull VH viewHolder, int position) {
229229
*
230230
* When {@link DatabaseError} is caught the adapter will stop loading any data
231231
*/
232-
protected void onError(@NonNull DatabaseError databaseError){
233-
232+
protected void onError(@NonNull DatabaseError databaseError) {
233+
Log.w(TAG, "onError", databaseError.toException());
234234
}
235235

236236
@NonNull

firestore/src/main/java/com/firebase/ui/firestore/paging/FirestorePagingAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,6 @@ protected void onLoadingStateChanged(@NonNull LoadingState state) {
223223
* When {@link Exception} is caught the adapter will stop loading any data
224224
*/
225225
protected void onError(@NonNull Exception e) {
226-
// For overriding
226+
Log.w(TAG, "onError", e);
227227
}
228228
}

0 commit comments

Comments
 (0)