pylons-exceptional

A Pylons client for Exceptional (getexceptional.com), ported from django-exceptional
Download

pylons-exceptional Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Public Domain
  • Publisher Name:
  • Alexis Le-Quoc
  • Publisher web site:
  • http://github.com/DataDog/

pylons-exceptional Tags


pylons-exceptional Description

A Pylons client for Exceptional (getexceptional.com), ported from django-exceptional pylons-exceptional is a Pylons client for Exceptional, a service which tracks errors in your web applications.It is a direct adaptation from django-exceptional.Get started in 3 stepsInstall the app: easy_install pylons-exceptional or pip install pylons-exceptionalStore your API key in your application configuration: # GetExceptional config exceptional.root=%(here)s exceptional.api_key=a_really_long_hex_keyConfigure the new error handler in your application (config/middleware.py):if asbool(full_stack): # Display error documents for 401, 403, 404 status codes (and # 500 when debug is disabled) if asbool(config): app = ErrorHandler(app, global_conf, **config) app = StatusCodeRedirect(app) else: # Send error to getexceptional if we can try: from exceptional import ExceptionalMiddleware app = ExceptionalMiddleware(app, config) except: import sys print "ERROR: Cannot setup exceptional error reporting", sys.exc_info() app = ErrorHandler(app, global_conf, **config) app = StatusCodeRedirect(app, )You are done.In this configuration getexceptional will only be triggered if you don't run in debug mode. Requirements: · Python


pylons-exceptional Related Software