Send error from a Pyramid application to Bugsnag
$ pip install pyramid_bugsnag
Include pyramid_bugsnag either in your paster config:
[app:main]
pyramid.includes = pyramid_bugsnag
or on your Pyramid configurator:
config = Configurator()
config.include('pyramid_bugsnag')
The Bugsnag client can be configured through the Paster settings:
bugsnag.api_key = 0123456789abcdef0123456789abcdef
bugsnag.release_stage = production
bugsnag.notify_release_stages = stage production
bugsnag.ignore_classes =
KeyboardInterrupt
pyramid.httpexceptions.HTTPNotFound
bugsnag.send_code = true
But nothing stops you from configuring the client directly:
bugsnag.configure(api_key='0123456789abcdef0123456789abcdef')
Full list of options on docs.bugsnag.com
Development dependencies are managed by Pipenv
Install Pipenv:
$ pip install pipenv
Create/update your development environment:
$ pipenv install --dev
...
$ pipenv shell
(new shell)
$
Run the tests:
$ pytest -v
Run the linters:
$ pylama