我创建了两个烧瓶应用程序:前端和restapi(烧瓶安静)。我创建了以下runserver.py来在开发中运行它们:
from werkzeug.wsgi import DispatcherMiddleware
from werkzeug.serving import run_simple
from restapi import app as restapi_app
from frontend import app as frontend_app
application = DispatcherMiddleware(frontend_app, {
'/api': restapi_app,
})
if __name__ == "__main__":
run_simple(
'localhost',
5000,
application,
use_reloader=True,
use_debugger=True,
use_evalex=True)
尽管use_debugger = True,但每当其中一个烧瓶资源出现错误时,我都无法获得跟踪,只有500错误
{"status": 500, "message": "Internal Server Error"}
如何获得完整的痕迹显示?如果您需要更多详细信息/代码,请与我们联系。