Skip to content

Commit 2fa51d3

Browse files
authored
Make offline warning an error instead of debug. (#379)
* make offline warning an `error` instead of `debug` By default, debug is not shown. We actually want the default behavior to show offline warning, if offline. * not using tag in `log.error`
1 parent 0eaecd8 commit 2fa51d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/remote/remote_store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class RemoteStore {
192192
this.watchStreamFailures++;
193193
if (this.watchStreamFailures >= ONLINE_ATTEMPTS_BEFORE_FAILURE) {
194194
if (this.shouldWarnOffline) {
195-
log.debug(LOG_TAG, 'Could not reach Firestore backend.');
195+
log.error('Could not reach Firestore backend.');
196196
this.shouldWarnOffline = false;
197197
}
198198
this.updateOnlineState(OnlineState.Failed);

0 commit comments

Comments
 (0)