From: Michael Tremer Date: Mon, 11 May 2026 15:59:08 +0000 (+0000) Subject: main: Fix the logger from crashing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1c0b8c2e177cb68ebb32677e3376352817df39a;p=zone-sync.git main: Fix the logger from crashing Signed-off-by: Michael Tremer --- diff --git a/main.c b/main.c index c9ee5c4..22d11d2 100644 --- 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) {