aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel/redis.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2015-04-10 11:58:31 -0500
committerPratik Naik <pratiknaik@gmail.com>2015-04-10 11:58:31 -0500
commit1ca045ccd43b3647487714e7441981ff87c51943 (patch)
tree509775dfe2a04679e17986038acd1729d4307201 /lib/action_cable/channel/redis.rb
parent033de15758bfb57a43e5e903fc4a1f6fa9fac118 (diff)
downloadrails-1ca045ccd43b3647487714e7441981ff87c51943.tar.gz
rails-1ca045ccd43b3647487714e7441981ff87c51943.tar.bz2
rails-1ca045ccd43b3647487714e7441981ff87c51943.zip
Tag log entries with the request id
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 fda55ec45d..197cf03c8e 100644
--- a/lib/action_cable/channel/redis.rb
+++ b/lib/action_cable/channel/redis.rb
@@ -14,7 +14,7 @@ module ActionCable
@_redis_channels ||= []
@_redis_channels << [ redis_channel, callback ]
- logger.info "[ActionCable] Subscribing to the redis channel: #{redis_channel}"
+ log_info "Subscribing to the redis channel: #{redis_channel}"
pubsub.subscribe(redis_channel, &callback)
end
@@ -22,7 +22,7 @@ module ActionCable
def unsubscribe_from_redis_channels
if @_redis_channels
@_redis_channels.each do |channel, callback|
- logger.info "[ActionCable] Unsubscribing from the redis channel: #{channel}"
+ log_info "Unsubscribing from the redis channel: #{channel}"
pubsub.unsubscribe_proc(channel, callback)
end
end
@@ -30,7 +30,7 @@ module ActionCable
def default_subscription_callback(channel)
-> (message) do
- logger.info "[ActionCable] Received a message over the redis channel: #{channel} (#{message})"
+ log_info "Received a message over the redis channel: #{channel} (#{message})"
broadcast ActiveSupport::JSON.decode(message)
end
end