]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
fixup! log: add syslog target, systemd
authorLukáš Ježek <lukas.jezek@nic.cz>
Wed, 9 Jun 2021 12:11:34 +0000 (14:11 +0200)
committerLukáš Ježek <lukas.jezek@nic.cz>
Tue, 22 Jun 2021 12:39:44 +0000 (14:39 +0200)
lib/log.c

index 7bd6f53712b01c553774cd25621970e48365196b..4b335b3b48cbadc75f43858455d330b82454c399 100644 (file)
--- a/lib/log.c
+++ b/lib/log.c
@@ -73,11 +73,12 @@ void kr_log_fmt(log_groups_t group, log_level_t level, const char *file,
 #if ENABLE_LIBSYSTEMD
                if (use_journal) {
                        sd_journal_printv_with_location(level, file, line, func, fmt, args);
-               } else
-#endif
-               {
+               } else {
                        vsyslog(level, fmt, args);
                }
+#else
+               vsyslog(level, fmt, args);
+#endif
                va_end(args);
 
                if (group_is_set(group))