From 6c43f5ad36e20c5e4cc5ffb0478fc17544a00a5e Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 20 Jul 2016 09:28:02 +0100 Subject: [PATCH] bus_context_log: remove special handling of !context->syslog _dbus_log() and _dbus_logv() are always the right functions to call now. Signed-off-by: Simon McVittie --- bus/bus.c | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/bus/bus.c b/bus/bus.c index 16a5fd9..2125e6b 100644 --- a/bus/bus.c +++ b/bus/bus.c @@ -1371,20 +1371,6 @@ bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char { va_list args; - if (!context->syslog) - { - /* we're not syslogging; just output to stderr */ - va_start (args, msg); - vfprintf (stderr, msg, args); - fprintf (stderr, "\n"); - va_end (args); - - if (severity == DBUS_SYSTEM_LOG_FATAL) - _dbus_exit (1); - - return; - } - va_start (args, msg); if (context->log_prefix) @@ -1421,18 +1407,7 @@ bus_context_log_literal (BusContext *context, DBusSystemLogSeverity severity, const char *msg) { - if (!context->syslog) - { - fputs (msg, stderr); - fputc ('\n', stderr); - - if (severity == DBUS_SYSTEM_LOG_FATAL) - _dbus_exit (1); - } - else - { - _dbus_log (severity, "%s%s", nonnull (context->log_prefix, ""), msg); - } + _dbus_log (severity, "%s%s", nonnull (context->log_prefix, ""), msg); } void -- 2.8.1