From e5ecb84277962777949b9d860fe2b0c2f9a83364 Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Thu, 14 Nov 2024 22:19:25 +0530 Subject: [PATCH] chore: log params for update_presence --- app/channels/room_channel.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/channels/room_channel.rb b/app/channels/room_channel.rb index 0680f1458..e102bc162 100644 --- a/app/channels/room_channel.rb +++ b/app/channels/room_channel.rb @@ -2,7 +2,7 @@ class RoomChannel < ApplicationCable::Channel def subscribed # TODO: should we only do ensure stream if current account is present? # for now going ahead with guard clauses in update_subscription and broadcast_presence - + log_params ensure_stream current_user current_account @@ -10,6 +10,10 @@ class RoomChannel < ApplicationCable::Channel broadcast_presence end + def log_params + Rails.logger.info("update_presence: #{params.inspect}") + end + def update_presence update_subscription broadcast_presence