diff options
author | Werner Koch <[email protected]> | 2017-01-23 10:39:10 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-01-23 10:39:20 +0000 |
commit | 9ae0b81e4ff08712da642456d0164f81924a91e4 (patch) | |
tree | ee5d828d0829600b7b76bfc8e3862f5ec65ef4e0 /dirmngr/dns-stuff.c | |
parent | dirmngr: Handle missing nsswitch.conf. (diff) | |
download | gnupg-9ae0b81e4ff08712da642456d0164f81924a91e4.tar.gz gnupg-9ae0b81e4ff08712da642456d0164f81924a91e4.zip |
dirmngr: Print debug message only with --debug.
* dirmngr/dns-stuff.c (libdns_init): Call log_debug only if opt_debug
is set.
--
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/dns-stuff.c')
-rw-r--r-- | dirmngr/dns-stuff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dirmngr/dns-stuff.c b/dirmngr/dns-stuff.c index eae888bf9..adeb3925d 100644 --- a/dirmngr/dns-stuff.c +++ b/dirmngr/dns-stuff.c @@ -483,7 +483,8 @@ libdns_init (void) * DNS then Files, which is not classic; FreeBSD * /usr/src/lib/libc/net/gethostnamadr.c defines default_src[] which * is Files then DNS, which is. */ - log_debug ("dns: fallback resolution order, files then DNS"); + if (opt_debug) + log_debug ("dns: fallback resolution order, files then DNS\n"); ld.resolv_conf->lookup[0] = 'f'; ld.resolv_conf->lookup[1] = 'b'; ld.resolv_conf->lookup[2] = '\0'; |