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

loglevel and logfile don't seem to work #25

Closed
nstielau opened this issue Apr 20, 2012 · 3 comments
Closed

loglevel and logfile don't seem to work #25

nstielau opened this issue Apr 20, 2012 · 3 comments

Comments

@nstielau
Copy link

Starting locust with a log file and a high log level still spits out INFO logs to STDOUT.

[root@metrics locust]# locust -f /root/locustfile.py --loglevel=CRITICAL --logfile=/root/locust.log -H http://www.example.com -n 10 -c 5 --web
/usr/lib/python2.7/site-packages/locust/core.py:23: UserWarning: WARNING: Using pure Python socket RPC implementation instead of zmq. This will not affect you if your not running locust in distributed mode, but if you are, we recommend you to install the python packages: pyzmq and gevent-zeromq
  warnings.warn("WARNING: Using pure Python socket RPC implementation instead of zmq. This will not affect you if your not running locust in distributed mode, but if you are, we recommend you to install the python packages: pyzmq and gevent-zeromq")
INFO:locust.main:Starting web monitor on port 8089
INFO:locust.main:Starting Locust 0.4
@heyman
Copy link
Member

heyman commented Jul 1, 2012

Hmm. I'm not able to reproduce this. Were you using the latest GIT version?

@nstielau
Copy link
Author

nstielau commented Jul 1, 2012

I'm using the latest version from PIP (marked 0.4). Is the version 0.4 in git different than the version 0.4?

I just installed fresh, and get the same output.

[nick@ncsonebox ~]$ locust -f basic.py --loglevel=CRITICAL --logfile=/root/locust.log -H http://www.mysite.com -n 10 -c 5 --web
/usr/lib/python2.7/site-packages/locust/core.py:23: UserWarning: WARNING: Using pure Python socket RPC implementation instead of zmq. This will not affect you if your not running locust in distributed mode, but if you are, we recommend you to install the python packages: pyzmq and gevent-zeromq
  warnings.warn("WARNING: Using pure Python socket RPC implementation instead of zmq. This will not affect you if your not running locust in distributed mode, but if you are, we recommend you to install the python packages: pyzmq and gevent-zeromq")
INFO:locust.main:Starting web monitor on port 8089
INFO:locust.main:Starting Locust 0.4

When I install from github via pip, I still get INFO output:

[nick@ncsonebox locust]$ locust -f basic.py --loglevel=CRITICAL --logfile=/root/locust.log -H http://www.mysite.com -n 10 -c 5
/home/nick/locust/src/locustio/locust/rpc/__init__.py:7: UserWarning: WARNING: Using pure Python socket RPC implementation instead of zmq. This will not affect you if your not running locust in distributed mode, but if you are, we recommend you to install the python packages: pyzmq and gevent-zeromq
  warnings.warn("WARNING: Using pure Python socket RPC implementation instead of zmq. This will not affect you if your not running locust in distributed mode, but if you are, we recommend you to install the python packages: pyzmq and gevent-zeromq")
INFO:locust.main:Starting web monitor on port 8089
INFO:locust.main:Starting Locust 0.4
[nick@ncsonebox locust]$ python --version
Python 2.7.3

@heyman
Copy link
Member

heyman commented Jul 1, 2012

Ok, managed to reproduce it now.

Found the bug, a fix is on it's way :). You should be able to work around it by installing pyzmq and gevent-zeromq.

Thanks!

@heyman heyman closed this as completed in ee71631 Jul 1, 2012
pancaprima pushed a commit to pancaprima/locust that referenced this issue Nov 8, 2017
…ma/b_chart_feature

Revert "Prima bugfix wrong data for chart"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants