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 Distribution
Built Distribution
Close
Hashes for control_error_handler-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c964812f7604cbf2807c0d7fc691c0f07f5f357b5d01183d92164a8f9183704 |
|
MD5 | feba8510ef71d9d85de060378ee915b5 |
|
BLAKE2b-256 | 392bbdd76af60382eb0dc4ceb574c7fbfe34717571807aee86855cd54cc18343 |
Close
Hashes for control_error_handler-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d82c6db03e29bec158e09d3a5130942cee33e286e4e1918ab9769d71861d000c |
|
MD5 | 61b3be068c05a4f160b3831006120ac7 |
|
BLAKE2b-256 | 11fdcfbc50103d5453f00b48fde636033f33a95158a7a5814e371e6e1eed703a |