]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Now logs UV versions when starting up
authorMark Andrews <marka@isc.org>
Fri, 3 Mar 2023 03:04:34 +0000 (14:04 +1100)
committerMark Andrews <marka@isc.org>
Fri, 3 Mar 2023 03:04:34 +0000 (14:04 +1100)
Named now logs both compile time and run time UV versions when
starting up.  This is useful information to have when debugging
network issues involving named.

bin/named/main.c

index 42b550d3bdf63a1aca42c4aa0e0c7476d79fe474..3c3a4e1cf730fc32ca29ecf27e79c082996b354d 100644 (file)
@@ -1163,6 +1163,13 @@ setup(void) {
                      "linked to OpenSSL version: %s",
                      SSLeay_version(SSLEAY_VERSION));
 #endif /* OPENSSL_VERSION_NUMBER >= 0x10100000L */
+       isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
+                     NAMED_LOGMODULE_MAIN, ISC_LOG_NOTICE,
+                     "compiled with libuv version: %d.%d.%d", UV_VERSION_MAJOR,
+                     UV_VERSION_MINOR, UV_VERSION_PATCH);
+       isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
+                     NAMED_LOGMODULE_MAIN, ISC_LOG_NOTICE,
+                     "linked to libuv version: %s", uv_version_string());
 #ifdef HAVE_LIBXML2
        isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
                      NAMED_LOGMODULE_MAIN, ISC_LOG_NOTICE,