diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2015-06-19 23:06:36 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-06-19 23:06:36 +0200 |
commit | 3759071420d7bd795f38cf26f0bb381c582009b1 (patch) | |
tree | 1c77f14bad0446c4d9b37a21cdc93250d5d878d9 /lib/action_cable/channel/redis.rb | |
parent | 4ebd8cecb85ffcd2292c1a7d0013a2725448f365 (diff) | |
download | rails-3759071420d7bd795f38cf26f0bb381c582009b1.tar.gz rails-3759071420d7bd795f38cf26f0bb381c582009b1.tar.bz2 rails-3759071420d7bd795f38cf26f0bb381c582009b1.zip |
Improve logging
Diffstat (limited to 'lib/action_cable/channel/redis.rb')
-rw-r--r-- | lib/action_cable/channel/redis.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/action_cable/channel/redis.rb b/lib/action_cable/channel/redis.rb index 6d114eee7e..b5fc812919 100644 --- a/lib/action_cable/channel/redis.rb +++ b/lib/action_cable/channel/redis.rb @@ -13,15 +13,15 @@ module ActionCable @_redis_channels ||= [] @_redis_channels << [ redis_channel, callback ] - logger.info "Subscribing to the redis channel: #{redis_channel}" pubsub.subscribe(redis_channel, &callback) + logger.info "#{channel_name} subscribed to incoming actions from #{redis_channel}" end def unsubscribe_from_all_channels if @_redis_channels - @_redis_channels.each do |channel, callback| - logger.info "Unsubscribing from the redis channel: #{channel}" - pubsub.unsubscribe_proc(channel, callback) + @_redis_channels.each do |redis_channel, callback| + pubsub.unsubscribe_proc(redis_channel, callback) + logger.info "#{channel_name} unsubscribed from incoming actions #{redis_channel}" end end end |