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

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

Open
masenf opened this issue May 4, 2024 · 1 comment

Comments

@masenf
Copy link
Collaborator

masenf commented May 4, 2024

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 masenf changed the title print and log statements inside backend event handler do not appear in docker logs [REF-2760] print and log statements inside backend event handler do not appear in docker logs May 4, 2024
@masenf masenf changed the title [REF-2760] print and log statements inside backend event handler do not appear in docker logs [REF-2760] print statements inside backend event handler do not appear in azure docker logs May 5, 2024
@masenf
Copy link
Collaborator Author

masenf commented May 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants