]> git.ipfire.org Git - zone-sync.git/commitdiff
main: Fix the logger from crashing
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 11 May 2026 15:59:08 +0000 (15:59 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 11 May 2026 15:59:08 +0000 (15:59 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
main.c

diff --git a/main.c b/main.c
index c9ee5c4128043f5380da8f43834b696fa6934116..22d11d22fac8d1003c0a6bf1aed3a71948b6dd2b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -170,13 +170,9 @@ static void setup_logging(void) {
        * (NULL category = wildcard, NULL module = wildcard) */
        isc_log_usechannel(logcfg, "stderr", NULL, NULL);
 
-       /* Tell libdns to register its categories/modules
-       * with this log context, and use it as default */
-       dns_log_init(ctx.log);
-       //dns_log_setcontext(ctx.log);
-
-       /* Also make libisc itself use it */
+       // Set this as the default log context
        isc_log_setcontext(ctx.log);
+       dns_log_setcontext(ctx.log);
 }
 
 static isc_result_t dns_name_from_string(dns_name_t** name, const char *text) {