sys.path.insert(0, "bin/python")
-from samba import gensec
+from samba import gensec, get_debug_level
from samba.emulate import traffic
import samba.getopt as options
parser.print_usage()
return
+ debuglevel = get_debug_level()
+ traffic.DEBUG_LEVEL = debuglevel
+
if opts.clean_up:
print_err("Removing user and machine accounts")
lp = sambaopts.get_loadparm()
print_err(e)
sys.exit()
- traffic.DEBUG_LEVEL = opts.debuglevel
-
duration = opts.duration
if duration is None:
duration = 60.0
else:
conversations = []
- if opts.debuglevel > 5:
+ if debuglevel > 5:
for c in conversations:
for p in c.packets:
print(" ", p, file=sys.stderr)