pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
339 stars 40 forks source link

pythonrc log spam #67

Open gabriel-v opened 1 year ago

gabriel-v commented 1 year ago

The pythonrc logs with print() things like HTTP fetches.

Once you start polling HTTP endpoints every few seconds, logs get very spammy very fast. The main culprit was the message 849: fopen: fetching

On my fork I changed some print statements into DBG: fork commit

I also used the logging library to allow me to bring back the spam by doing logging.getLogger(None).setLevel('DEBUG').

Questions:

pmp-p commented 1 year ago

i'll do the same remark i did for lvgl micropython. I want people to be able to see what is getting in/out from their browser. Maybe an acceptable compromise would be to delay/drop more and more after hitting the same url with no error status.