mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#4949 make config_syslog accumulate across multiple values
Can set to zero to explicitly clear it. (As well as just deleting all values.)
This commit is contained in:
parent
1365ec745e
commit
dda5e19904
1 changed files with 5 additions and 3 deletions
|
|
@ -2576,8 +2576,6 @@ config_loglevel(ConfigArgs *c) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
config_syslog = 0;
|
||||
|
||||
for( i=1; i < c->argc; i++ ) {
|
||||
int level;
|
||||
|
||||
|
|
@ -2596,7 +2594,11 @@ config_loglevel(ConfigArgs *c) {
|
|||
return( 1 );
|
||||
}
|
||||
}
|
||||
config_syslog |= level;
|
||||
/* Explicitly setting a zero clears all the levels */
|
||||
if ( level )
|
||||
config_syslog |= level;
|
||||
else
|
||||
config_syslog = 0;
|
||||
}
|
||||
if ( slapMode & SLAP_SERVER_MODE ) {
|
||||
ldap_syslog = config_syslog;
|
||||
|
|
|
|||
Loading…
Reference in a new issue