diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2017-02-07 00:01:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-07 00:01:02 -0700 |
commit | 875439409424d60f6dadc123946b40c3af142aa9 (patch) | |
tree | 0f231144d13ad86eb46ae26bfb4b84585de6a64e /actioncable/lib/action_cable | |
parent | f6d68408a0bd6f2f1a32627ab8b8e4cd68eeb43e (diff) | |
parent | 963572b2a4bf252d6c860eb1c5586809f8f4936e (diff) | |
download | rails-875439409424d60f6dadc123946b40c3af142aa9.tar.gz rails-875439409424d60f6dadc123946b40c3af142aa9.tar.bz2 rails-875439409424d60f6dadc123946b40c3af142aa9.zip |
Merge pull request #27922 from martijn/reduce-actioncable-logging
Move some ActionCable logs to debug level
Diffstat (limited to 'actioncable/lib/action_cable')
-rw-r--r-- | actioncable/lib/action_cable/channel/base.rb | 2 | ||||
-rw-r--r-- | actioncable/lib/action_cable/server/broadcasting.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/lib/action_cable/channel/base.rb b/actioncable/lib/action_cable/channel/base.rb index 6739a62ba0..718f630f58 100644 --- a/actioncable/lib/action_cable/channel/base.rb +++ b/actioncable/lib/action_cable/channel/base.rb @@ -205,7 +205,7 @@ module ActionCable # Transmit a hash of data to the subscriber. The hash will automatically be wrapped in a JSON envelope with # the proper channel identifier marked as the recipient. def transmit(data, via: nil) # :doc: - logger.info "#{self.class.name} transmitting #{data.inspect.truncate(300)}".tap { |m| m << " (via #{via})" if via } + logger.debug "#{self.class.name} transmitting #{data.inspect.truncate(300)}".tap { |m| m << " (via #{via})" if via } payload = { channel_class: self.class.name, data: data, via: via } ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do diff --git a/actioncable/lib/action_cable/server/broadcasting.rb b/actioncable/lib/action_cable/server/broadcasting.rb index 1fc58baa3e..7fcd6c6587 100644 --- a/actioncable/lib/action_cable/server/broadcasting.rb +++ b/actioncable/lib/action_cable/server/broadcasting.rb @@ -38,7 +38,7 @@ module ActionCable end def broadcast(message) - server.logger.info "[ActionCable] Broadcasting to #{broadcasting}: #{message.inspect}" + server.logger.debug "[ActionCable] Broadcasting to #{broadcasting}: #{message.inspect}" payload = { broadcasting: broadcasting, message: message, coder: coder } ActiveSupport::Notifications.instrument("broadcast.action_cable", payload) do |