aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dirmngr_ldap.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-04-27 09:57:08 +0000
committerWerner Koch <[email protected]>2018-04-27 09:57:08 +0000
commitd22506a343cec61b7d1a48c970b63a8458b267ab (patch)
tree349bcfba06d424cb0bee8d751a95c4667430deb2 /dirmngr/dirmngr_ldap.c
parentdirmngr: Lower the dead host resurrection time to 1.5h (diff)
downloadgnupg-d22506a343cec61b7d1a48c970b63a8458b267ab.tar.gz
gnupg-d22506a343cec61b7d1a48c970b63a8458b267ab.zip
dirmngr: Silence log output from dirmngr_ldap.
* dirmngr/dirmngr_ldap.c: Remove assert.h. (main): Replace assert by log_assert. * dirmngr/ldap.c (run_ldap_wrapper): Use debug options to pass verbose options to dirmngr_ldap. (start_cert_fetch_ldap): Ditto. -- verbose is a pretty common option in dirmngr.conf and it would clutter the logs with output from dirmngr_ldap. Now we require DBG_EXTPROG or DBG_LOOKUP to make dirmngr_ldap more verbose. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--dirmngr/dirmngr_ldap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dirmngr/dirmngr_ldap.c b/dirmngr/dirmngr_ldap.c
index 5be4e5814..e05c77925 100644
--- a/dirmngr/dirmngr_ldap.c
+++ b/dirmngr/dirmngr_ldap.c
@@ -29,7 +29,6 @@
# include <signal.h>
#endif
#include <errno.h>
-#include <assert.h>
#include <sys/time.h>
#include <unistd.h>
#ifndef USE_LDAPWRAPPER
@@ -343,7 +342,7 @@ ldap_wrapper_main (char **argv, estream_t outstream)
usage (1);
#else
/* All passed arguments should be fine in this case. */
- assert (argc);
+ log_assert (argc);
#endif
#ifdef USE_LDAPWRAPPER