- Introduction of Partner Admin role in combination with 'Management Partner' type.
This commit is contained in:
@@ -87,16 +87,6 @@ def create_app(config_file=None):
|
||||
sqlalchemy_logger.setLevel(logging.DEBUG)
|
||||
# log_request_middleware(app) # Add this when debugging nginx or another proxy
|
||||
|
||||
# Some generic Error Handling Routines
|
||||
@app.errorhandler(Exception)
|
||||
def handle_exception(e):
|
||||
app.logger.error(f"Unhandled Exception: {e}", exc_info=True)
|
||||
response = {
|
||||
"message": str(e),
|
||||
"type": type(e).__name__
|
||||
}
|
||||
return jsonify(response), 500
|
||||
|
||||
# @app.before_request
|
||||
# def before_request():
|
||||
# # app.logger.debug(f"Before request - Session ID: {session.sid}")
|
||||
|
||||
Reference in New Issue
Block a user