script/traffic_replay: print packets data to stderr
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 20 Aug 2018 04:31:32 +0000 (16:31 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 10 Oct 2018 04:16:21 +0000 (06:16 +0200)
This is debug info, should print to stderr.
Otherwise it will flood stdout.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/traffic_replay

index f414015a87210b7495a8d96c41ac9a408ea3fbe6..a5074448dedf8d02003296c5c69260f78f5daf4e 100755 (executable)
@@ -272,9 +272,9 @@ def main():
     if opts.debuglevel > 5:
         for c in conversations:
             for p in c.packets:
-                print("    ", p)
+                print("    ", p, file=sys.stderr)
 
-        print('=' * 72)
+        print('=' * 72, file=sys.stderr)
 
     if opts.number_of_users and opts.number_of_users < len(conversations):
         print_err(("--number-of-users (%d) is less than the "