summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-01-15 15:09:37 +0000
committerrofl0r <rofl0r@users.noreply.github.com>2020-01-15 15:09:37 +0000
commit4fb2c1403907a860c407471537484ba5cf1ef992 (patch)
treeec231e918cc7b73bd8689ef10a7bb518a0df8850 /src
parent40afaeb63754c8495b92696a3f663a9e42b7b7ac (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/log.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/log.c b/src/log.c
index 0ed686b..f31696d 100644
--- a/src/log.c
+++ b/src/log.c
@@ -292,10 +292,7 @@ int setup_logging (void)
}
if (config.syslog) {
- if (config.godaemon == TRUE)
- openlog ("tinyproxy", LOG_PID, LOG_DAEMON);
- else
- openlog ("tinyproxy", LOG_PID, LOG_USER);
+ openlog ("tinyproxy", LOG_PID, LOG_USER);
}
logging_initialized = TRUE;