Python flask print statements are not printed to logs

i have deployed flask app on render.
print statements are getting logged locally but not on render.

seen similar issues without any resolution:

Hey,

Try adding the ‘flush’ parameter to flush the output from the buffer, e.g. print('something', flush=True)

Jérémy.
Render Support, UTC+3

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.