diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2016-02-19 16:04:24 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2016-02-19 16:04:24 +0100 |
commit | 2a83a6e87851d2184093ca107b4574fd1c4a658a (patch) | |
tree | 997a99435a8d55dd920cc0b339794d61e417d6f1 /actioncable/lib/action_cable | |
parent | af572a69a75ef87f17b8d06bdc8a56f3a59d779a (diff) | |
parent | 3fe383c6015cdbe9874340d8d8bc1a5954d08234 (diff) | |
download | rails-2a83a6e87851d2184093ca107b4574fd1c4a658a.tar.gz rails-2a83a6e87851d2184093ca107b4574fd1c4a658a.tar.bz2 rails-2a83a6e87851d2184093ca107b4574fd1c4a658a.zip |
Merge pull request #23709 from jankeesvw/set-action-cable-logging-to-debug
Make ActionCable logging less verbose in development
Diffstat (limited to 'actioncable/lib/action_cable')
-rw-r--r-- | actioncable/lib/action_cable/channel/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/lib/action_cable/channel/base.rb b/actioncable/lib/action_cable/channel/base.rb index 874ebe2e71..86c8f12f6e 100644 --- a/actioncable/lib/action_cable/channel/base.rb +++ b/actioncable/lib/action_cable/channel/base.rb @@ -191,7 +191,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) - 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 } connection.transmit ActiveSupport::JSON.encode(identifier: @identifier, message: data) end |