python flask sqlalchemy慢日志记录
参考 1:https://www.cnblogs.com/rgcLOVEyaya/p/RGC_LOVE_YAYA_605days.html 参考 2:https://gitee.com/Green-unicorn/codes/1u8rlt03gvpic7xfwz9je12 engine = create_engine(ProdConfig.SQLALCHEMY_DATABASE_URI, echo=True) app = Flask(__name__)app.config['FLASKY_DB_QUERY_TIMEOUT'] = 0.0001 # 设置 sql 执行超时时间,#...
more...