On a Friday in 2025, Michal Privoznik via Devel wrote:
From: Michal Privoznik <mpriv...@redhat.com>

As promised in previous commit, make NSS modules silent by
default and enable debug printings if LIBVIRT_NSS_DEBUG envvar is
set.

Signed-off-by: Michal Privoznik <mpriv...@redhat.com>
---
docs/nss.rst                | 13 +++++++++++++
tools/nss/libvirt_nss_log.c |  4 ++++
tools/nss/libvirt_nss_log.h |  2 ++
3 files changed, 19 insertions(+)

diff --git a/docs/nss.rst b/docs/nss.rst
index be137d987b..3df85cee0a 100644
--- a/docs/nss.rst
+++ b/docs/nss.rst
@@ -111,6 +111,19 @@ their IP addresses in any other way (usermode networking, 
assigned network
devices and so on) will not be able to have their hostnames resolved through
it.

+Debugging
+---------
+
+:since:`Since 11.5.0` both NSS modules check for ``LIBVIRT_NSS_DEBUG``

11.6.0

Jano

+environment variable¸ which if set to any value turns on printing of debug and
+error messages onto standard error output. This can be useful when debugging
+either of the module.
+
+::
+
+  $ LIBVIRT_NSS_DEBUG=1 getent hosts mydomain
+
+

Attachment: signature.asc
Description: PGP signature

Reply via email to