We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af572a6 + 3fe383c commit 2a83a6eCopy full SHA for 2a83a6e
actioncable/lib/action_cable/channel/base.rb
@@ -191,7 +191,7 @@ def unsubscribed
191
# Transmit a hash of data to the subscriber. The hash will automatically be wrapped in a JSON envelope with
192
# the proper channel identifier marked as the recipient.
193
def transmit(data, via: nil)
194
- logger.info "#{self.class.name} transmitting #{data.inspect}".tap { |m| m << " (via #{via})" if via }
+ logger.info "#{self.class.name} transmitting #{data.inspect.truncate(300)}".tap { |m| m << " (via #{via})" if via }
195
connection.transmit ActiveSupport::JSON.encode(identifier: @identifier, message: data)
196
end
197
0 commit comments