From: Howard Chu Date: Tue, 26 Oct 2021 13:33:30 +0000 (+0100) Subject: ITS#9715 Fix loglevel regression X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dcf12f7da6812b9fd5cd763f703ef2ce5fe9edc;p=thirdparty%2Fopenldap.git ITS#9715 Fix loglevel regression Only set loglevel in server mode, not tool mode --- diff --git a/servers/slapd/logging.c b/servers/slapd/logging.c index 7b3ffe0758..0a21ca8085 100644 --- a/servers/slapd/logging.c +++ b/servers/slapd/logging.c @@ -656,11 +656,13 @@ config_logging(ConfigArgs *c) { reset: slap_debug = slap_debug_orig; active_syslog = config_syslog; - if ( logfile_only ) { - slap_debug |= config_syslog; - ldap_syslog = 0; - } else { - ldap_syslog = config_syslog; + if ( slapMode & SLAP_SERVER_MODE ) { + if ( logfile_only ) { + slap_debug |= config_syslog; + ldap_syslog = 0; + } else { + ldap_syslog = config_syslog; + } } rc = 0; break;