diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action_cable/channel/base.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index 39a5a7e795..335d2d9d7c 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -36,10 +36,10 @@ module ActionCable action = extract_action(data) if performable_action?(action) - logger.info channel_name + compose_signature(action, data) + logger.info action_signature(action, data) public_send action, data else - logger.error "#{channel_name} failed to process #{compose_signature(action, data)}" + logger.error "Unable to process #{action_signature(action, data)}" end else unauthorized @@ -96,8 +96,8 @@ module ActionCable self.class.instance_methods(false).include?(action) end - def compose_signature(action, data) - "##{action}".tap do |signature| + def action_signature(action, data) + "#{channel_name}##{action}".tap do |signature| if (arguments = data.except('action')).any? signature << "(#{arguments.inspect})" end |