]> git.ipfire.org Git - pakfire.git/commitdiff
Log to syslog by default
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Nov 2017 17:13:44 +0000 (18:13 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Nov 2017 17:13:44 +0000 (18:13 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/logging.c

index 9f1c33805854c5f0d794749b41aa441b2e4877be..344172ecc89f6a311561c2550ba209693b5541fa 100644 (file)
@@ -30,7 +30,7 @@
 #include <pakfire/pakfire.h>
 
 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
+}