]> 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)
committerTom Krizek <tkrizek@isc.org>
Fri, 3 Mar 2023 08:28:58 +0000 (09:28 +0100)
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.

(cherry picked from commit 5fd2cd80183f87a35550fc734d6256e8ee5158a0)

bin/named/main.c

index a936d6cdf0419f8b32cd582ea491f5fe02c1251f..074936bbb46979d5cd482a74d2c63b50c56283eb 100644 (file)
@@ -1279,6 +1279,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,