aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection/internal_channel.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/connection/internal_channel.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/connection/internal_channel.rb')
-rw-r--r--lib/action_cable/connection/internal_channel.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/action_cable/connection/internal_channel.rb b/lib/action_cable/connection/internal_channel.rb
index 745fd99b78..5338fc879e 100644
--- a/lib/action_cable/connection/internal_channel.rb
+++ b/lib/action_cable/connection/internal_channel.rb
@@ -10,7 +10,7 @@ module ActionCable
@_internal_redis_subscriptions << [ internal_redis_channel, callback ]
pubsub.subscribe(internal_redis_channel, &callback)
- logger.info "[ActionCable] Registered connection (#{connection_identifier})"
+ log_info "Registered connection (#{connection_identifier})"
end
end
@@ -26,12 +26,12 @@ module ActionCable
case message['type']
when 'disconnect'
- logger.info "[ActionCable] Removing connection (#{connection_identifier})"
+ log_info "Removing connection (#{connection_identifier})"
@websocket.close
end
rescue Exception => e
- logger.error "[ActionCable] There was an exception - #{e.class}(#{e.message})"
- logger.error e.backtrace.join("\n")
+ log_error "There was an exception - #{e.class}(#{e.message})"
+ log_error e.backtrace.join("\n")
handle_exception
end