Skip to main content

Error handler for flask with sending exceptions to control service.

Project description

Error handler for flask with sending exceptions to control service.

Installing

From pypi:

$ pip install control_error_handler

or from source:

$ python setup.py install

Quick start

Add to flask app.configs:

CONTROL_EXCEPTION_URL = 'http://localhost:5000/api/monitoring/send-exception/'
SEND_EXCEPTION_TO_CONTROL = True

Init control handler in __init__.py on flask project:

from flask import Flask
from control_error_handler.error_handler import ControlHandler

app = Flask(__name__)

ControlHandler(app)

Use ES54Exception:

from control_error_handler.exceptions import ES54Exception

raise ES54Exception('Some error...', ext_data={'any_action': True})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

control_error_handler-0.1.3-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page