lib/sensu/api/http_handler.rb
def http_request_errback(error)
        @logger.error("unexpected api error", {
          :error => error.to_s,
          :backtrace => error.backtrace.join("\n")
        })
        error! rescue nil
      end
# Catch uncaught/unexpected errors, log them, and attempt to
# respond with a `500` (Internal Server Error) HTTP response.
# This method is called by EM HTTP Server.
#
# @param error [Object]
Catch uncaught/unexpected errors, log them, and attempt to
respond with a `500` (Internal Server Error) HTTP response.
This method is called by EM HTTP Server.
Catch uncaught / unexpected errors log them and attempt to respond with a ` 500 ` ( Internal Server Error ) HTTP response . This method is called by EM HTTP Server .
def http_request_errback(error)
        @logger.error("unexpected api error", {
          :error => error.to_s,
          :backtrace => error.backtrace.join("\n")
        })
        error! rescue nil
      end
def http_request_errback ( error ) @logger . error ( "unexpected api error" , { :error => error . to_s , :backtrace => error . backtrace . join ( "\n" ) } ) error! rescue nil end
Catch uncaught/unexpected errors, log them, and attempt to
respond with a `500` (Internal Server Error) HTTP response.
Catch uncaught / unexpected errors log them and attempt to respond with a ` 500 ` ( Internal Server Error ) HTTP response .
error
None