Open
fix: disable flask debug mode in server startup #15
super dog.Add on May 26
May 26 Added label: sig/sig-Migration
openeuler-ci-bot
May 26 Comments:
May 26 Comments:
Welcome To openEuler Community
Hey @papertager , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: sig-Migration ,
and any of the maintainers: @blublue, @genedna, @stonefly128, @weidongkl, @xingwei-liu, @yeqinglong01 ,
and any of the committers: @blublue .


May 26 Associated pull request
Problem
index.pystarts the Flask service withdebug=Truewhen executed directly. Debug mode is intended for local development and should not be enabled by default in a migration tool service.Impact
Default debug mode can expose unnecessary runtime details and changes server behavior in production-like deployments.
Suggested Fix
Start Flask with
debug=Falsewhile keeping the configured host and port unchanged.