提交 89be0998 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #28757 from edwardmp/log-actioncable-write-read-errors

Log any write errors originating from the socket
* ActionCable socket errors are now logged to the console
Previously any socket errors were ignored and this made it hard to diagnose socket issues (e.g. as discussed in #28362).
*Edward Poot*
Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actioncable/CHANGELOG.md) for previous changes.
......@@ -126,7 +126,8 @@ def on_message(message) # :nodoc:
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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册