Skip to content

Commit 9cb9706

Browse files
committed
improve error logging
Change-Id: Id79c5cb58d98813c17777bd4d7a3fb8a312af688
1 parent b1e7ea3 commit 9cb9706

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

FirebaseFirestoreUI/FUIFirestoreCollectionViewDataSource.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,15 @@ - (void)batchedArray:(FUIBatchedArray *)array
132132
}
133133
[self.collectionView insertItemsAtIndexPaths:insertedIndexPaths];
134134

135-
} completion:^(BOOL finished) {
136-
NSLog(@"Updated with diff: %@", diff);
137-
NSLog(@"Total: %ld", (long)_collection.count);
138-
}];
135+
} completion:^(BOOL finished) {}];
139136
}
140137

141138
- (void)batchedArray:(FUIBatchedArray *)array queryDidFailWithError:(NSError *)error {
142139
if (self.queryErrorHandler != nil) {
143140
self.queryErrorHandler(error);
144141
} else {
145-
NSLog(@"%@ Unhandled Firestore error: %@", self, error);
142+
NSLog(@"%@ Unhandled Firestore error: %@. Set the queryErrorHandler property to debug.",
143+
self, error);
146144
}
147145
}
148146

FirebaseFirestoreUI/FUIFirestoreTableViewDataSource.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ - (void)batchedArray:(FUIBatchedArray *)array queryDidFailWithError:(NSError *)e
136136
if (self.queryErrorHandler != nil) {
137137
self.queryErrorHandler(error);
138138
} else {
139-
NSLog(@"%@ Unhandled Firestore error: %@", self, error);
139+
NSLog(@"%@ Unhandled Firestore error: %@. Set the queryErrorHandler property to debug.",
140+
self, error);
140141
}
141142
}
142143

0 commit comments

Comments
 (0)