From dd25aa129b6d799853312134628402f77b492eab Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Tue, 13 Sep 2016 10:49:47 +0200 Subject: [PATCH] python/drs_utils: do not attempt to parse log level, use parsed value The log level parameter can contain debug class specific entries. Do not attempt to parse this as int, but use the values that the debugging system already parsed BUG: https://bugzilla.samba.org/show_bug.cgi?id=9945 Signed-off-by: Christian Ambach Reviewed-by: Andrew Bartlett --- python/samba/drs_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/drs_utils.py b/python/samba/drs_utils.py index 6c8afae7e90..07fc05af246 100644 --- a/python/samba/drs_utils.py +++ b/python/samba/drs_utils.py @@ -44,7 +44,7 @@ def drsuapi_connect(server, lp, creds): """ binding_options = "seal" - if int(lp.get("log level")) >= 5: + if lp.log_level() >= 5: binding_options += ",print" binding_string = "ncacn_ip_tcp:%s[%s]" % (server, binding_options) try: -- 2.34.1