protected Method

Rescue.log_error(exception)

Overwrite to implement custom logging of errors. By default logs as fatal.

Source Code

# File action_controller/rescue.rb, line 130
def log_error(exception) #:doc:
  ActiveSupport::Deprecation.silence do
    if ActionView::TemplateError === exception
      logger.fatal(exception.to_s)
    else
      logger.fatal(
        "\n\n#{exception.class} (#{exception.message}):\n    " +
        clean_backtrace(exception).join("\n    ") +
        "\n\n"
      )
    end
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.