From: Michael Tremer Date: Wed, 29 Nov 2017 17:13:44 +0000 (+0100) Subject: Log to syslog by default X-Git-Tag: 0.9.28~1285^2~1249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db94848bea6d323afb4ee08dba9ac295926162fb;p=pakfire.git Log to syslog by default Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/logging.c b/src/libpakfire/logging.c index 9f1c33805..344172ecc 100644 --- a/src/libpakfire/logging.c +++ b/src/libpakfire/logging.c @@ -30,7 +30,7 @@ #include static pakfire_logging_config_t conf = { - .function = pakfire_log_stderr, + .function = pakfire_log_syslog, .priority = LOG_ERR, }; @@ -100,4 +100,4 @@ void pakfire_log_syslog(int priority, const char* file, int line, const char* fn, const char* format, va_list args) { openlog("pakfire", LOG_PID, LOG_DAEMON); vsyslog(priority | LOG_DAEMON, format, args); -} \ No newline at end of file +}