reflex-dev / reflex

🕸️ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
19.88k stars 1.15k forks source link

[REF-2760] print statements inside backend event handler do not appear in azure docker logs #3229

Open masenf opened 5 months ago

masenf commented 5 months ago

Describe the bug In a docker deployment on Azure Container App service, print calls don't seem to show up in the output. Stdout appears to be suppressed, which makes debugging issues very difficult.

More investigation needed.

From SyncLinear.com | REF-2760

masenf commented 5 months ago

Okay i think we have a workaround here:

Set the environment variable PYTHONUNBUFFERED=1

This will allow the stdout to go directly to the logs.