Make sure we log the backtrace as well.

This commit is contained in:
Guo Xiang Tan 2017-05-17 16:31:12 +08:00
parent 5b73da9c87
commit 4b3b54da70

View File

@ -64,7 +64,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}")
Rails.logger.warn("Failed to handle connection in stats socket #{e}:\n#{e.backtrace.join("\n")}")
ensure
socket&.close rescue nil
end