Improve error messaging in `SocketServer`.

This commit is contained in:
Guo Xiang Tan 2018-09-19 09:11:10 +08:00
parent b33a623774
commit 5a9b029014
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class SocketServer
rescue IOError, Errno::EPIPE
# nothing to do here, case its normal on shutdown
rescue => e
Rails.logger.warn("Failed to handle connection in stats socket #{e}:\n#{e.backtrace.join("\n")}")
Rails.logger.warn("Failed to handle connection #{e}:\n#{e.backtrace.join("\n")}")
ensure
socket&.close
end