summaryrefslogtreecommitdiff
path: root/src/basic/log.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-01-24 18:01:01 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-24 18:22:56 +0100
commit6c347d5024e7451336d0c5d0f7eaf90ae11d9dc9 (patch)
tree573979425305a2f337aff8f96e91eb3c42228641 /src/basic/log.h
parent7a3be263d2ac9ecb17072c956789c4882c230f1e (diff)
downloadsystemd-6c347d5024e7451336d0c5d0f7eaf90ae11d9dc9.tar.gz
log: remove LOG_TARGET_SAFE pseudo log target
This removes LOG_TARGET_SAFE. It's made redundant by the new "prohibit-ipc" logging flag, as it used to have a similar effect: avoid logging to the journal/syslog, i.e. any local services in order to avoid deadlocks when we lock from PID 1 or its utility processes (such as generators). All previous users of LOG_TARGET_SAFE are switched over to the new setting. This makes things a bit safer for all, as not even the SYSTEMD_LOG_TARGET env var can be used to accidentally log to the journal anymore in these programs.
Diffstat (limited to 'src/basic/log.h')
-rw-r--r--src/basic/log.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/basic/log.h b/src/basic/log.h
index cc767ba1a9..f2c6cd8c0a 100644
--- a/src/basic/log.h
+++ b/src/basic/log.h
@@ -50,7 +50,6 @@ typedef enum LogTarget{
LOG_TARGET_SYSLOG,
LOG_TARGET_SYSLOG_OR_KMSG,
LOG_TARGET_AUTO, /* console if stderr is tty, JOURNAL_OR_KMSG otherwise */
- LOG_TARGET_SAFE, /* console if stderr is tty, KMSG otherwise */
LOG_TARGET_NULL,
_LOG_TARGET_MAX,
_LOG_TARGET_INVALID = -1