summaryrefslogtreecommitdiff
path: root/python/samba
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2016-09-13 10:49:47 +0200
committerChristian Ambach <ambi@samba.org>2016-09-14 19:31:21 +0200
commitdd25aa129b6d799853312134628402f77b492eab (patch)
treef9dc405413ad77b509ffef2d9d56ed1fbff7b327 /python/samba
parentfa56dbf6706872c5287eab082bb6ba7b5bd3ccd2 (diff)
downloadsamba-dd25aa129b6d799853312134628402f77b492eab.tar.gz
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 <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python/samba')
-rw-r--r--python/samba/drs_utils.py2
1 files changed, 1 insertions, 1 deletions
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: