diff options
Diffstat (limited to 'lib/action_cable/connection/internal_channel.rb')
-rw-r--r-- | lib/action_cable/connection/internal_channel.rb | 8 |
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 |