forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6447097
committed
tests: Prevent syslog activity by slapd, take 2
Unfortunately it turns out that the logfile-only option added inb9f8d1cis only available in openldap starting in 2.6.Luckily the option to control the log level (loglevel/-s) have been around formuch 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 theoption only controls debug messages, and we didn't set a debug level. Thedebug level can only be configured on the commandline and also preventsforking. That'd require larger changes, so this commit doesn't tackle thatissue.Specify the syslog level when starting slapd using -s, as that allows toprevent all syslog messages if one uses '0' instead of 'none', while logleveldoesn't prevent the first message.Discussion:https://postgr.es/m/20230311233708.3yjdbjkly2q4gq2j@awork3.anarazel.deBackpatch: 11-1 parente709596 commit6447097
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
172 |
| - | |
173 | 172 |
| |
174 | 173 |
| |
175 | 174 |
| |
| |||
205 | 204 |
| |
206 | 205 |
| |
207 | 206 |
| |
208 |
| - | |
| 207 | + | |
| 208 | + | |
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
|
0 commit comments
Comments
(0)