diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2015-04-08 17:26:16 -0500 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2015-04-08 17:26:16 -0500 |
commit | b4233cdfb218763a3a2095188070e1ffc98b3829 (patch) | |
tree | e96eed1d970018e6e5e06a6da53c9964eed305a7 /lib | |
parent | bb2f657e4ab1041b6a33b6f302c64580ceb6aa06 (diff) | |
download | rails-b4233cdfb218763a3a2095188070e1ffc98b3829.tar.gz rails-b4233cdfb218763a3a2095188070e1ffc98b3829.tar.bz2 rails-b4233cdfb218763a3a2095188070e1ffc98b3829.zip |
Log when unsubscribing from a redis channel
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action_cable/channel/redis.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/action_cable/channel/redis.rb b/lib/action_cable/channel/redis.rb index fc25f1dd4c..d47e503c51 100644 --- a/lib/action_cable/channel/redis.rb +++ b/lib/action_cable/channel/redis.rb @@ -21,7 +21,10 @@ module ActionCable protected def unsubscribe_from_redis_channels if @_redis_channels - @_redis_channels.each { |channel, callback| pubsub.unsubscribe_proc(channel, callback) } + @_redis_channels.each do |channel, callback| + logger.info "[ActionCable] Unsubscribing from the redis channel: #{channel}" + pubsub.unsubscribe_proc(channel, callback) + end end end end |