Airbrake notifier for Tornado
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
airbrake
test
.gitignore
LICENSE
README.md
setup.py

README.md

airbrake-tornado

Airbrake notifier for Tornado web framework.

Installation

Install via pip:

pip install airbrake-tornado

Usage

  from airbrake import airbrake

  # In your RequestHandler:

  API_KEY = "Airbrake API key"
  ENV_NAME = "Airbrake env name"

  def write_error(self, status_code, **kwargs):
      if exc_info and status_code == 500:
          airbrake.notify(kwargs["exc_info"],
                          self.request,
                          "My-cool-app",
                          api_key=self.API_KEY,
                          environment=self.ENV_NAME)

License

airbrake-tornado is available under the MIT license. See the LICENSE file for more info.