From 1ca045ccd43b3647487714e7441981ff87c51943 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Fri, 10 Apr 2015 11:58:31 -0500 Subject: Tag log entries with the request id --- lib/action_cable/connection/internal_channel.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/action_cable/connection/internal_channel.rb') 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 -- cgit v1.2.3