mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
More for ITS#3937, pick up pre-set ldap_syslog values.
This commit is contained in:
parent
055c1abbdc
commit
f8a97897ad
@ -1977,6 +1977,9 @@ config_loglevel(ConfigArgs *c) {
|
||||
}
|
||||
|
||||
if (c->op == SLAP_CONFIG_EMIT) {
|
||||
/* Get default or commandline slapd setting */
|
||||
if ( ldap_syslog && !config_syslog )
|
||||
config_syslog = ldap_syslog;
|
||||
return mask_to_verbs( loglevel_ops, config_syslog, &c->rvalue_vals );
|
||||
} else if ( c->op == LDAP_MOD_DELETE ) {
|
||||
if ( !c->line ) {
|
||||
@ -2013,9 +2016,9 @@ config_loglevel(ConfigArgs *c) {
|
||||
}
|
||||
}
|
||||
config_syslog |= level;
|
||||
if ( slapMode & SLAP_SERVER_MODE ) {
|
||||
ldap_syslog = config_syslog;
|
||||
}
|
||||
}
|
||||
if ( slapMode & SLAP_SERVER_MODE ) {
|
||||
ldap_syslog = config_syslog;
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user