aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel/redis.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-06-20 16:51:11 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-06-20 16:51:11 +0200
commit995c101caae06ec38d0106dcd9ee36954a489687 (patch)
tree6bfeb3013482de2b6fc8a44226c67028b645dc9f /lib/action_cable/channel/redis.rb
parentf6daf0ef6d811053301c7e9b2991911caa57e841 (diff)
downloadrails-995c101caae06ec38d0106dcd9ee36954a489687.tar.gz
rails-995c101caae06ec38d0106dcd9ee36954a489687.tar.bz2
rails-995c101caae06ec38d0106dcd9ee36954a489687.zip
More logging improvements
Diffstat (limited to 'lib/action_cable/channel/redis.rb')
-rw-r--r--lib/action_cable/channel/redis.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/action_cable/channel/redis.rb b/lib/action_cable/channel/redis.rb
index bdd6ab9dcf..0f77dc0418 100644
--- a/lib/action_cable/channel/redis.rb
+++ b/lib/action_cable/channel/redis.rb
@@ -14,14 +14,14 @@ module ActionCable
@_redis_channels << [ redis_channel, callback ]
pubsub.subscribe(redis_channel, &callback)
- logger.info "#{channel_name} subscribed to incoming actions from #{redis_channel}"
+ logger.info "#{channel_name} subscribed to broadcasts from #{redis_channel}"
end
def unsubscribe_from_all_channels
if @_redis_channels
@_redis_channels.each do |redis_channel, callback|
pubsub.unsubscribe_proc(redis_channel, callback)
- logger.info "#{channel_name} unsubscribed from incoming actions #{redis_channel}"
+ logger.info "#{channel_name} unsubscribed to broadcasts from #{redis_channel}"
end
end
end
@@ -29,7 +29,7 @@ module ActionCable
protected
def default_subscription_callback(channel)
-> (message) do
- transmit ActiveSupport::JSON.decode(message), via: "incoming action from #{channel}"
+ transmit ActiveSupport::JSON.decode(message), via: "broadcast from #{channel}"
end
end
end