aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/connection
diff options
context:
space:
mode:
authoredwardmp <e.poot@evolutionhost.nl>2017-04-14 15:25:08 +0200
committeredwardmp <e.poot@evolutionhost.nl>2017-04-16 20:14:28 +0200
commitfc416d3721a019efbbd249abfb5ab7daf34c2a64 (patch)
treec5a2c20fa1c5fbbb7c8b999ce2f2c0444788a0b1 /actioncable/lib/action_cable/connection
parentfebf19d5d3d1750334acb2d3b1cd4b7da5d9637c (diff)
downloadrails-fc416d3721a019efbbd249abfb5ab7daf34c2a64.tar.gz
rails-fc416d3721a019efbbd249abfb5ab7daf34c2a64.tar.bz2
rails-fc416d3721a019efbbd249abfb5ab7daf34c2a64.zip
Log any errors originating from the socket
Diffstat (limited to 'actioncable/lib/action_cable/connection')
-rw-r--r--actioncable/lib/action_cable/connection/base.rb3
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: