Flask Debugger + Hot-reloader watchdog Logs

I have a run configuration for a Flask app running inside a docker container. The app runs and debugs without problems, but when I try to use the FLASK_DEBUG ✅ setting, I get an endless stream of debug logs. This crowds out custom logs and makes debugging impossible.

The following is printed on repeat, non-stop. (Only occurs when FLASK_DEBUG is enabled)

"DEBUG watchdog.observers.inotify_buffer in /home/python/.local/lib/python3.9/site-packages/watchdog/observers/inotify_buffer.py line no 57 : in-event <InotifyEvent: src_path=b'/opt/project/logs/app_debug.log', wd=14, mask=IN_MODIFY, cookie=0, name=app_debug.log>"

 

HOW CAN I DISABLE THIS LOG? It has rendered development impossible.

 

Run Configuration Details:

  • Target: my Flask application
  • Additional options: --host=0.0.0.0 --port:8000
  • FLASK_ENV: development
  • FLASK_DEBUG: true
  • Python interpreter: Docker-compose configured interpreter
  • Working Dir: base path of project

0
1 comment

Hello, 

I can't reproduce the issue with a minimal setup. Could you please provide a simplified version of your project for testing purposes? 

0

Please sign in to leave a comment.