diff options
author | Christian Ambach <ambi@samba.org> | 2016-09-13 10:49:47 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2016-09-14 19:31:21 +0200 |
commit | dd25aa129b6d799853312134628402f77b492eab (patch) | |
tree | f9dc405413ad77b509ffef2d9d56ed1fbff7b327 /python/samba | |
parent | fa56dbf6706872c5287eab082bb6ba7b5bd3ccd2 (diff) | |
download | samba-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.py | 2 |
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: |