HF RL Explorer

Task: Configure Gunicorn to Capture Python Print Statements in Logs

Task: Configure Gunicorn to Capture Python Print Statements in Logs: a task in Terminal-Lego-15k (Harbor dataset). Create a Bottle web application served by Gunicorn that properly captures Python print() statements in Gunicorn's log output. By default, Python buffers stdout which prevents print…

The task

Create a Bottle web application served by Gunicorn that properly captures Python `print()` statements in Gunicorn's log output. By default, Python buffers stdout which prevents print statements from appearing in Gunicorn's logs. Your task is to configure the environment so that print statements are reliably logged to…

Part of PrimeIntellect/Terminal-Lego-15k.