Skip to content

Commit 755410f

Browse files
authored
Bump stream closing log to WARN. (#5604)
* Bump stream closing log to WARN. * Add extra empty line * Reformat
1 parent abc2669 commit 755410f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Firestore/core/src/remote/stream.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,13 @@ void Stream::HandleErrorStatus(const Status& status) {
295295
void Stream::OnStreamFinish(const Status& status) {
296296
EnsureOnQueue();
297297

298-
LOG_DEBUG("%s Stream error: '%s'", GetDebugDescription(), status.ToString());
298+
if (!status.ok()) {
299+
LOG_WARN("%s Stream error: '%s'", GetDebugDescription(), status.ToString());
300+
} else {
301+
LOG_DEBUG("%s Stream closing: '%s'", GetDebugDescription(),
302+
status.ToString());
303+
}
304+
299305
Close(status);
300306
}
301307

0 commit comments

Comments
 (0)