Comments (3)
The ExceptionMiddleware
implements 3 methods handling the different kind of exceptions:
All 3 methods log the exceptions to level error
. If the middleware does logging we should have a way to influence the log level I think: at least exceptions handled by the problem_handler
are ... well ... handled already :)
Btw. the extended StarletteExceptionMiddleware
does not log at all.
Wdyt?
from connexion.
We run into a similar issue with the validation in connexion.validators.json
.
The code (1) logs an error and (2) raises an BadRequestProblem which again logs an error.
I assume that it is a pretty common thing for Ops teams to base alarms on exceptions logged.
The framework doesn't seems to consider this fact. What is your take on this? Would you be open to contribution to make Connextion more flexible in this regard?
from connexion.
Closed in favour of #1925.
from connexion.
Related Issues (20)
- Splitting spec files still throws schema and file not found errors (json_schema exceptions) but still works with Connexion <= 3.0.2 HOT 2
- Can't handle requests with `connexion[flask]` without `uvicorn`. HOT 2
- Middlewares are executed altough url doesnt exist in openapi spec HOT 1
- Middlewares are executed altough url doesnt exist in openapi spec
- Following example in documentation gives DeprecationWarning
- Variable in server url not being interpolated HOT 1
- Authentication validation function doesn't respect error classes HOT 2
- Fails with 500 error when returning HTTPStatus and default response is configured
- Trigger new release HOT 1
- Custom "uri_parser" stops working when "connexion" is upgraded to "v3.0.6" from "v2.14.2" HOT 2
- FlaskApp server not working with uvicorn reload option enabled HOT 1
- Error Logging HOT 1
- Proposal: JWT claim validation annotation
- How to stream an HTTP response with connexion 3 and AsyncApp? HOT 5
- Gunicorn is not working with new Connexion 3.0.6 HOT 2
- Connexion with running async environments HOT 1
- AWS Lambda (and / or other cloud vendor) example(s) of Connexion 3 HOT 1
- `uvicorn.worker` for gunicorn is deprecated in favor of `uvicorn-worker` package
- Empty body parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connexion.