diff options
author | edwardmp <e.poot@evolutionhost.nl> | 2017-04-14 15:25:08 +0200 |
---|---|---|
committer | edwardmp <e.poot@evolutionhost.nl> | 2017-04-16 20:14:28 +0200 |
commit | fc416d3721a019efbbd249abfb5ab7daf34c2a64 (patch) | |
tree | c5a2c20fa1c5fbbb7c8b999ce2f2c0444788a0b1 /actioncable/lib | |
parent | febf19d5d3d1750334acb2d3b1cd4b7da5d9637c (diff) | |
download | rails-fc416d3721a019efbbd249abfb5ab7daf34c2a64.tar.gz rails-fc416d3721a019efbbd249abfb5ab7daf34c2a64.tar.bz2 rails-fc416d3721a019efbbd249abfb5ab7daf34c2a64.zip |
Log any errors originating from the socket
Diffstat (limited to 'actioncable/lib')
-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: |