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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file control_error_handler-0.1.3-py3-none-any.whl.
File metadata
- Download URL: control_error_handler-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0764b2f9087f4c989b88a7a8a5fc948edbfa00d6c5901029684e60d1bb9eaa7a
|
|
| MD5 |
a870d28313ca851fbec3d2784e222861
|
|
| BLAKE2b-256 |
aaaa4d3fe08b9a28b58434e3b583d1803b3b9e7ec7053eb237f023c2a677c89a
|