Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling interactive web based debugger from Werkzeug and print to terminal #83

Open
pascal-mueller opened this issue Jul 28, 2023 · 1 comment
Labels
question Further information is requested

Comments

@pascal-mueller
Copy link

Hello,

if I understand it correctly, Flask uses Werkzeug and Werkzeug assumes we are in some MVC design pattern or something similar i.e. we are not a pure API. So they provide an interactive debugger and what not yet we can't really use that because with APIFairy, we make pure APIs.

This leads to things like seeing the interactive Werkzeug debugger resp. its HTML in the response in the documentation generated by APIFairy.

I figured, I probably can simply configure Flask or Werkzeug such that it dumps the information to the terminal but I just can't find any information as to how.

How exactly is this solved? How do I tell Flask or Werkzeug to simply print everything into the terminal/stdout?

@miguelgrinberg
Copy link
Owner

The Flask debugger is not enabled by default. You must have turned it one. Maybe by setting FLASK_DEBUG in the environment, or some other way. So you need to review your Flask app configuration and remove the debug setting.

@miguelgrinberg miguelgrinberg added the question Further information is requested label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants