]> 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:31:54 +0000 (09:31 +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 8060333b446e89ab25a3ba66a596c6af27ffb791..509da5544651157f1a4f763c9f926677265b149a 100644 (file)
@@ -1186,6 +1186,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,