diff options
author | Neal H. Walfield <[email protected]> | 2015-11-16 19:55:34 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-11-17 13:53:02 +0000 |
commit | 8f6099ac510526d89be50309dbeb52f62bbaa7d1 (patch) | |
tree | d0de2b2879028f1fc56bda118c77a84b9ee3e6fe /g10/gpg.c | |
parent | gpg: Make debugging search descriptors easier. (diff) | |
download | gnupg-8f6099ac510526d89be50309dbeb52f62bbaa7d1.tar.gz gnupg-8f6099ac510526d89be50309dbeb52f62bbaa7d1.zip |
gpg: Add some debugging output.
--
Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | g10/gpg.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -2124,6 +2124,12 @@ check_user_ids (strlist_t *sp, default: log_bug ("Unsupport option: %d\n", t->flags >> 2); } + if (DBG_LOOKUP) + { + log_debug ("\n"); + log_debug ("%s: Checking %s=%s\n", __func__, option, t->d); + } + err = classify_user_id (t->d, &desc, 1); if (err) { @@ -2153,6 +2159,9 @@ check_user_ids (strlist_t *sp, err = keydb_search (hd, &desc, 1, NULL); if (gpg_err_code (err) == GPG_ERR_NOT_FOUND) { + if (DBG_LOOKUP) + log_debug ("%s: '%s' not found.\n", __func__, t->d); + if (error_if_not_found) { if (! rc) @@ -2195,6 +2204,9 @@ check_user_ids (strlist_t *sp, release_kbnode (kb); /* Continue the search. */ + if (DBG_LOOKUP) + log_debug ("%s: Check for duplicates for %s='%s'\n", + __func__, option, t->d); err = keydb_search (hd, &desc, 1, NULL); if (! err) /* Another result! */ |