mirror of
https://github.com/gophernicus/gophernicus.git
synced 2024-11-03 04:27:17 -05:00
Stop sending log messages to client when in debug mode
inetd(8) sends the contents of stdout AND stderr to the client. This means that configuring syslog(3) with LOG_PERROR (print messages to stderr) is a bad idea.
This commit is contained in:
parent
da3390089c
commit
9e7885f00f
@ -27,9 +27,7 @@ void log_init(int enable, int debug)
|
|||||||
|
|
||||||
_enable = enable;
|
_enable = enable;
|
||||||
|
|
||||||
openlog(PROGNAME,
|
openlog(PROGNAME, LOG_PID, LOG_DAEMON);
|
||||||
LOG_PID | (debug ? LOG_PERROR : 0),
|
|
||||||
LOG_DAEMON);
|
|
||||||
|
|
||||||
setlogmask(_LOG_UPTO(debug ? LOG_DEBUG : LOG_INFO));
|
setlogmask(_LOG_UPTO(debug ? LOG_DEBUG : LOG_INFO));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user