pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: tests: Prevent syslog activity by slapd, take 2
Date: Fri, 17 Mar 2023 06:35:02 +0000
Message-ID: <E1pd3g6-003wwK-B6@gemulon.postgresql.org> (raw)

tests: Prevent syslog activity by slapd, take 2

Unfortunately it turns out that the logfile-only option added in b9f8d1cbad7
is only available in openldap starting in 2.6.

Luckily the option to control the log level (loglevel/-s) have been around for
much longer. As it turns out loglevel/-s only control what goes into syslog,
not what ends up in the file specified with 'logfile' and stderr.

While we currently are specifying 'logfile', nothing ends up in it, as the
option only controls debug messages, and we didn't set a debug level. The
debug level can only be configured on the commandline and also prevents
forking. That'd require larger changes, so this commit doesn't tackle that
issue.

Specify the syslog level when starting slapd using -s, as that allows to
prevent all syslog messages if one uses '0' instead of 'none', while loglevel
doesn't prevent the first message.

Discussion: https://postgr.es/m/20230311233708.3yjdbjkly2q4gq2j@awork3.anarazel.de
Backpatch: 11-

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ce29cea17fb323b67a6772e9acd1ec63e5c9a4b7

Modified Files
--------------
src/test/ldap/t/001_auth.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



view thread (6+ messages)

Message-ID: <E1pd3g6-003wwK-B6@gemulon.postgresql.org>
Permalink:  ../E1pd3g6-003wwK-B6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pd3g6-003wwK-B6@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: tests: Prevent syslog activity by slapd, take 2
  In-Reply-To: <E1pd3g6-003wwK-B6@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox