diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action_cable/channel/base.rb | 1 | ||||
-rw-r--r-- | lib/action_cable/connection/base.rb | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index 2dba3b3ea6..87f1cfe095 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -76,6 +76,7 @@ module ActionCable def broadcast(data) if authorized? + logger.info "Broadcasting: #{data.inspect}" connection.broadcast({ identifier: @channel_identifier, message: data }.to_json) else unauthorized diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb index 2ae5c5554c..8953d9eee1 100644 --- a/lib/action_cable/connection/base.rb +++ b/lib/action_cable/connection/base.rb @@ -86,7 +86,6 @@ module ActionCable end def broadcast(data) - logger.info "Sending data: #{data}" @websocket.send data end |