Skip to content

Commit

Permalink
add noop flushes for stdoutwrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
justiniso committed Mar 31, 2016
1 parent 94c10f5 commit 548ffe7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions locust/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,21 @@ class StdOutWrapper(object):
def write(self, s):
stdout_logger.info(s.strip())

def flush(self, *args, **kwargs):
"""No-op for wrapper"""
pass

class StdErrWrapper(object):
"""
Wrapper for stderr
"""
def write(self, s):
stderr_logger.error(s.strip())

def flush(self, *args, **kwargs):
"""No-op for wrapper"""
pass

# set up logger for the statistics tables
console_logger = logging.getLogger("console_logger")
# create console handler
Expand Down

0 comments on commit 548ffe7

Please sign in to comment.