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 <wk@gnupg.org>
This commit is contained in:
Werner Koch 2017-01-23 11:39:10 +01:00
parent 88ade475c5
commit 9ae0b81e4f
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 2 additions and 1 deletions

View File

@ -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';