Skip to content

Commit 2516610

Browse files
authored
Log a warning if the RTDB connection is forcefully killed. (#2787)
* Log a warning if the RTDB connection is forcefully killed. * Fmt
1 parent 20cd7fa commit 2516610

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

firebase-database/src/main/java/com/google/firebase/database/connection/PersistentConnectionImpl.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,11 @@ public void onDisconnect(Connection.DisconnectReason reason) {
559559

560560
@Override
561561
public void onKill(String reason) {
562-
if (logger.logsDebug())
563-
logger.debug(
564-
"Firebase Database connection was forcefully killed by the server. Will not attempt reconnect. Reason: "
565-
+ reason);
562+
logger.warn(
563+
"Firebase Database connection was forcefully killed by the server. Will not attempt"
564+
+ " reconnect. Reason: "
565+
+ reason);
566+
566567
interrupt(SERVER_KILL_INTERRUPT_REASON);
567568
}
568569

0 commit comments

Comments
 (0)