diff --git a/locust/main.py b/locust/main.py index a7cd65e968..45901f0d99 100644 --- a/locust/main.py +++ b/locust/main.py @@ -342,7 +342,7 @@ def timelimit_stop(): pass # dont log anything - not having a time limit is normal when not running headless input_listener_greenlet = None - if not options.worker: + if not options.worker and sys.stdout.isatty(): # spawn input listener greenlet input_listener_greenlet = gevent.spawn( input_listener(