diff options
author | Greg Soltis <gsoltis@google.com> | 2018-01-02 14:03:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-02 14:03:07 -0800 |
commit | 275b4e5a7633d69b6de36551398e88943dca8432 (patch) | |
tree | def0ac2f76b966cdc99ab05c052cbc991032e57f | |
parent | 8c2777b2456416a1e26e436397c68b62107abe62 (diff) |
Log pending writes when we disable the network (#604)
* Log pending writes when we disable the network
* Fix formatting
* Formatting
-rw-r--r-- | Firestore/Source/Remote/FSTRemoteStore.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Firestore/Source/Remote/FSTRemoteStore.m b/Firestore/Source/Remote/FSTRemoteStore.m index 02bf6f2..a0c5059 100644 --- a/Firestore/Source/Remote/FSTRemoteStore.m +++ b/Firestore/Source/Remote/FSTRemoteStore.m @@ -540,6 +540,8 @@ static const int kOnlineAttemptsBeforeFailure = 2; - (void)cleanUpWriteStreamState { self.lastBatchSeen = kFSTBatchIDUnknown; + FSTLog(@"Stopping write stream with %lu pending writes", + (unsigned long)[self.pendingWrites count]); [self.pendingWrites removeAllObjects]; } |