From de623474db3ba402c9bbd872ab6f932f46cbdde9 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 5 Sep 2016 12:50:35 +0200 Subject: dirmngr: Exclude D lines from the IPC debug output. * dirmngr/dirmngr.h: Include asshelp.h. * dirmngr/server.c (server_local_s): Add inhibit_dara_logging fields. (data_line_write): Implement logging inhibit. (data_line_cookie_close): Print non-logged D lines. (cmd_wkd_get, cmd_ks_get, cmd_ks_fetch): Do not log D lines. (dirmngr_assuan_log_monitor): New. * dirmngr/dirmngr.c (main): Register monitor function. -- In particular with large keys the D lines clutter the log output and make it unusable. Signed-off-by: Werner Koch --- dirmngr/dirmngr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dirmngr/dirmngr.c') diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c index 2bb57b207..7f989a55f 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -702,7 +702,7 @@ main (int argc, char **argv) assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT); assuan_set_system_hooks (ASSUAN_SYSTEM_NPTH); assuan_sock_init (); - setup_libassuan_logging (&opt.debug, NULL); + setup_libassuan_logging (&opt.debug, dirmngr_assuan_log_monitor); setup_libgcrypt_logging (); -- cgit v1.2.3