Commit db7c1c32 authored by Petr Špaček's avatar Petr Špaček

scenario.py: remove redundant VERBOSE tests

For easier debugging we will need proper logging with categogies and
levels. For now just cleanup redundant if VERBOSE: tests around
dprint() calls.
parent b89110a3
......@@ -521,8 +521,7 @@ class Step:
if len(self.args) > 0 and self.args[0].isdigit():
nqueries = int(self.args.pop(0))
destination = ctx.client[ctx.client.keys()[0]]
if 'VERBOSE' in os.environ:
dprint(dtag, 'replaying %d queries to %s@%d (%s)' % (nqueries, destination[0], destination[1], ' '.join(self.args)))
dprint(dtag, 'replaying %d queries to %s@%d (%s)' % (nqueries, destination[0], destination[1], ' '.join(self.args)))
if 'INTENSIFY' in os.environ:
nqueries *= int(os.environ['INTENSIFY'])
tstart = datetime.now()
......@@ -530,8 +529,7 @@ class Step:
# Keep/print the statistics
rtt = (datetime.now() - tstart).total_seconds() * 1000
pps = 1000 * nrcvd / rtt
if 'VERBOSE' in os.environ:
dprint(dtag, 'sent: %d, received: %d (%d ms, %d p/s)' % (nsent, nrcvd, rtt, pps))
dprint(dtag, 'sent: %d, received: %d (%d ms, %d p/s)' % (nsent, nrcvd, rtt, pps))
tag = None
for arg in self.args:
if arg.upper().startswith('PRINT'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment