Skip to content

Commit 2a83a6e

Browse files
author
David Heinemeier Hansson
committed
Merge pull request rails#23709 from jankeesvw/set-action-cable-logging-to-debug
Make ActionCable logging less verbose in development
2 parents af572a6 + 3fe383c commit 2a83a6e

File tree

1 file changed

+1
-1
lines changed
  • actioncable/lib/action_cable/channel

1 file changed

+1
-1
lines changed

actioncable/lib/action_cable/channel/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def unsubscribed
191191
# Transmit a hash of data to the subscriber. The hash will automatically be wrapped in a JSON envelope with
192192
# the proper channel identifier marked as the recipient.
193193
def transmit(data, via: nil)
194-
logger.info "#{self.class.name} transmitting #{data.inspect}".tap { |m| m << " (via #{via})" if via }
194+
logger.info "#{self.class.name} transmitting #{data.inspect.truncate(300)}".tap { |m| m << " (via #{via})" if via }
195195
connection.transmit ActiveSupport::JSON.encode(identifier: @identifier, message: data)
196196
end
197197

0 commit comments

Comments
 (0)