Skip to content

Commit 2f99f4d

Browse files
committed
Remove redundant lost-and-found warning log
The warning "Failed to send delta to lost and found for client" was duplicative — emit_lost_and_found already logs the underlying cause (either "Redis token owner not found" or "Redis error publishing lost and found delta") for both failure modes. The extra warning wasn't actionable and confused users.
1 parent fbd85e3 commit 2f99f4d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

reflex/app.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,10 +1593,7 @@ async def emit_update(self, update: StateUpdate, token: str) -> None:
15931593
):
15941594
if isinstance(self._token_manager, RedisTokenManager):
15951595
# The socket belongs to another instance of the app, send it to the lost and found.
1596-
if not await self._token_manager.emit_lost_and_found(token, update):
1597-
console.warn(
1598-
f"Failed to send delta to lost and found for client {token!r}"
1599-
)
1596+
await self._token_manager.emit_lost_and_found(token, update)
16001597
else:
16011598
# If the socket record is None, we are not connected to a client. Prevent sending
16021599
# updates to all clients.

0 commit comments

Comments
 (0)