chore: log params for update_presence
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user