diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-04-19 19:35:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 19:35:07 -0400 |
commit | 89be09982a5542e810d2a017125c0715660f6d03 (patch) | |
tree | 8bc8601c92cd30525a5af7f4c7bb3009cb401582 /actioncable/lib/action_cable/connection/base.rb | |
parent | 7ce850cd627dc87874affa25efd8349cf329ccc5 (diff) | |
parent | fc416d3721a019efbbd249abfb5ab7daf34c2a64 (diff) | |
download | rails-89be09982a5542e810d2a017125c0715660f6d03.tar.gz rails-89be09982a5542e810d2a017125c0715660f6d03.tar.bz2 rails-89be09982a5542e810d2a017125c0715660f6d03.zip |
Merge pull request #28757 from edwardmp/log-actioncable-write-read-errors
Log any write errors originating from the socket
Diffstat (limited to 'actioncable/lib/action_cable/connection/base.rb')
-rw-r--r-- | actioncable/lib/action_cable/connection/base.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actioncable/lib/action_cable/connection/base.rb b/actioncable/lib/action_cable/connection/base.rb index 0a517a532d..ac5f405dea 100644 --- a/actioncable/lib/action_cable/connection/base.rb +++ b/actioncable/lib/action_cable/connection/base.rb @@ -126,7 +126,8 @@ module ActionCable end def on_error(message) # :nodoc: - # ignore + # log errors to make diagnosing socket errors easier + logger.error "WebSocket error occurred: #{message}" end def on_close(reason, code) # :nodoc: |