mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
ITS#10143 only slapd should use the logfile
This commit is contained in:
parent
f141416f32
commit
314800db23
3 changed files with 16 additions and 10 deletions
|
|
@ -564,12 +564,13 @@ see
|
|||
option description. The default is 71.
|
||||
.TP
|
||||
.B olcLogFile: <filename>
|
||||
Specify a file for recording slapd debug messages. By default these messages
|
||||
only go to stderr, are not recorded anywhere else, and are unrelated to
|
||||
messages exposed by the
|
||||
Specify a file for recording slapd debug messages. These messages are
|
||||
unrelated to messages exposed by the
|
||||
.B olcLogLevel
|
||||
configuration parameter. Specifying a logfile copies messages to both stderr
|
||||
and the logfile.
|
||||
configuration parameter. This setting only affects the slapd daemon and has
|
||||
no effect on the command line tools. By default these messages
|
||||
only go to stderr and are not recorded anywhere else.
|
||||
Specifying a logfile copies messages to both stderr and the logfile.
|
||||
.TP
|
||||
.B olcLogFileFormat: debug | syslog-utc | syslog-localtime
|
||||
Specify the prefix format for messages written to the logfile. The debug
|
||||
|
|
|
|||
|
|
@ -618,12 +618,13 @@ see
|
|||
option description. The default is 71.
|
||||
.TP
|
||||
.B logfile <filename>
|
||||
Specify a file for recording slapd debug messages. By default these messages
|
||||
only go to stderr, are not recorded anywhere else, and are unrelated to
|
||||
messages exposed by the
|
||||
Specify a file for recording slapd debug messages. These messages are
|
||||
unrelated to messages exposed by the
|
||||
.B loglevel
|
||||
configuration parameter. Specifying a logfile copies messages to both stderr
|
||||
and the logfile.
|
||||
configuration parameter. This setting only affects the slapd daemon and has
|
||||
no effect on the command line tools. By default these messages
|
||||
only go to stderr and are not recorded anywhere else.
|
||||
Specifying a logfile copies messages to both stderr and the logfile.
|
||||
.TP
|
||||
.B logfile-format debug | syslog-utc | syslog-localtime
|
||||
Specify the prefix format for messages written to the logfile. The debug
|
||||
|
|
|
|||
|
|
@ -201,6 +201,10 @@ logfile_open( const char *path )
|
|||
struct stat st;
|
||||
int fd, saved_errno;
|
||||
|
||||
/* the logfile is for slapd only, not tools */
|
||||
if ( !( slapMode & SLAP_SERVER_MODE ))
|
||||
return 0;
|
||||
|
||||
fd = open( path, O_CREAT|O_WRONLY, 0640 );
|
||||
if ( fd < 0 ) {
|
||||
saved_errno = errno;
|
||||
|
|
|
|||
Loading…
Reference in a new issue