mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Move some ActionCable logs to debug level
This commit is contained in:
parent
2bbea8b099
commit
963572b2a4
2 changed files with 2 additions and 2 deletions
|
@ -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
|
# 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.
|
# the proper channel identifier marked as the recipient.
|
||||||
def transmit(data, via: nil) # :doc:
|
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 }
|
payload = { channel_class: self.class.name, data: data, via: via }
|
||||||
ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
|
ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
|
||||||
|
|
|
@ -38,7 +38,7 @@ module ActionCable
|
||||||
end
|
end
|
||||||
|
|
||||||
def broadcast(message)
|
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 }
|
payload = { broadcasting: broadcasting, message: message, coder: coder }
|
||||||
ActiveSupport::Notifications.instrument("broadcast.action_cable", payload) do
|
ActiveSupport::Notifications.instrument("broadcast.action_cable", payload) do
|
||||||
|
|
Loading…
Reference in a new issue