mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
ipatests: set default 389-ds log level to 0
During integration tests, the log level of 8192 (replication debugging) was excessive and made reading 389-ds logs very hard without providing any useful information. Part of: https://pagure.io/freeipa/issue/7162 Signed-off-by: Tomas Krizek <tkrizek@redhat.com> Reviewed-By: Thierry Bordaz <tbordaz@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
be66eadb62
commit
be6f1a67cb
@ -236,14 +236,14 @@ def restore_hostname(host):
|
||||
host.run_command(['rm', backupname])
|
||||
|
||||
|
||||
def enable_replication_debugging(host):
|
||||
logger.info('Enable LDAP replication logging')
|
||||
def enable_replication_debugging(host, log_level=0):
|
||||
logger.info('Set LDAP debug level')
|
||||
logging_ldif = textwrap.dedent("""
|
||||
dn: cn=config
|
||||
changetype: modify
|
||||
replace: nsslapd-errorlog-level
|
||||
nsslapd-errorlog-level: 8192
|
||||
""")
|
||||
nsslapd-errorlog-level: {log_level}
|
||||
""".format(log_level=log_level))
|
||||
host.run_command(['ldapmodify', '-x',
|
||||
'-D', str(host.config.dirman_dn),
|
||||
'-w', host.config.dirman_password,
|
||||
|
Loading…
Reference in New Issue
Block a user