mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
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> (cherry picked from commit dd25aa129b6d799853312134628402f77b492eab)
This commit is contained in:
parent
4fe66b567d
commit
430e9d2b2a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user