aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel/base.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2015-04-10 14:23:44 -0500
committerPratik Naik <pratiknaik@gmail.com>2015-04-10 14:23:44 -0500
commit426fe543d7b6d6fa42ff18304770a628904f5f4c (patch)
tree43e475ef0696537e5e78c3b349b78abbade0d452 /lib/action_cable/channel/base.rb
parent1ca045ccd43b3647487714e7441981ff87c51943 (diff)
downloadrails-426fe543d7b6d6fa42ff18304770a628904f5f4c.tar.gz
rails-426fe543d7b6d6fa42ff18304770a628904f5f4c.tar.bz2
rails-426fe543d7b6d6fa42ff18304770a628904f5f4c.zip
Add a tagged proxy logger to handle per connection tags
Diffstat (limited to 'lib/action_cable/channel/base.rb')
-rw-r--r--lib/action_cable/channel/base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb
index 37399c8101..fac988ba52 100644
--- a/lib/action_cable/channel/base.rb
+++ b/lib/action_cable/channel/base.rb
@@ -11,7 +11,7 @@ module ActionCable
on_unsubscribe :disconnect
attr_reader :params, :connection
- delegate :log_info, :log_error, to: :connection
+ delegate :logger, to: :connection
class_attribute :channel_name
@@ -41,7 +41,7 @@ module ActionCable
if respond_to?(:receive)
receive(data)
else
- log_error "#{self.class.name} received data (#{data}) but #{self.class.name}#receive callback is not defined"
+ logger.error "#{self.class.name} received data (#{data}) but #{self.class.name}#receive callback is not defined"
end
else
unauthorized
@@ -67,7 +67,7 @@ module ActionCable
end
def unauthorized
- log_error "Unauthorized access to #{self.class.name}"
+ logger.error "Unauthorized access to #{self.class.name}"
end
def connect