syslog: always use LOG_USER facility
LOG_DAEMON isn't specified in POSIX and the gratuitously different treatment is in the way of a planned cleanup.
This commit is contained in:
parent
40afaeb637
commit
4fb2c14039
@ -292,10 +292,7 @@ int setup_logging (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (config.syslog) {
|
if (config.syslog) {
|
||||||
if (config.godaemon == TRUE)
|
openlog ("tinyproxy", LOG_PID, LOG_USER);
|
||||||
openlog ("tinyproxy", LOG_PID, LOG_DAEMON);
|
|
||||||
else
|
|
||||||
openlog ("tinyproxy", LOG_PID, LOG_USER);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logging_initialized = TRUE;
|
logging_initialized = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user