-
Notifications
You must be signed in to change notification settings - Fork 3k
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
DEBUG output in docker is not working #1337
Comments
I've managed to reproduce this. It's caused by python's buffering of stdout. A workaround would be to set environment variable This should definitely be the default. |
Better with PYTHONUNBUFFERED: 1 in the environment: section in my docker-compose.yml. But only the print(self.rspAcs, ' ') where the details of GET and POST are missing. |
Sorry, I don't understand what you mean. Is there still some print that is missing? |
The print is fine. For reference using the latest image on docker hub, with DEBUG set, the line above the print output is valuable, example below. That line is missing when using the :master image from docker hub, although I haven't pulled the :master image since yesterday afternoon.
What I see now for example;
I actually have not used print("something") in the locustfile without DEBUG set in the environment, so maybe these are 2 different problems. |
…essing logging messages from loggers that haven't been explicitly declared (#1337)
Ah, I see what you mean now I believe I've fixed it in master (it'll probably take a few minutes before a new Docker image is built). |
Describe the bug
Using the DEBUG option in a docker-compose file is not very verbose on the terminal. Same results without DEBUG
Expected behavior
With this option and a few print("something") lines the terminal output shows important information.
Actual behavior
This is what I see using the latest build in docker with a print("access token")
Using locustio/lociust:master
Steps to reproduce
docker pull locustio/locust:master
lauch docker-compose
Environment
I'm experimenting with SequentialTaskSet since I was having problems with @seq_task.
The text was updated successfully, but these errors were encountered: