summaryrefslogtreecommitdiffstats
path: root/g10/trustdb.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-01-20 15:51:18 +0100
committerWerner Koch <wk@gnupg.org>2016-01-20 15:51:18 +0100
commitbdb61351776c038d668310d9b5e5c32588ef6519 (patch)
tree8610dc9f849fd7d7240c44938f884997372893c8 /g10/trustdb.c
parentagent: New option --pinentry-timeout (diff)
downloadgnupg2-bdb61351776c038d668310d9b5e5c32588ef6519.tar.xz
gnupg2-bdb61351776c038d668310d9b5e5c32588ef6519.zip
gpg: Silence message about ignoring revoked user ids.
* g10/trustdb.c (tdb_get_validity_core): Print message only in debug mode. -- This makes only sense for debugging. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/trustdb.c')
-rw-r--r--g10/trustdb.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index d3a186f3f..8f2b2cbf3 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -1041,18 +1041,22 @@ tdb_get_validity_core (PKT_public_key *pk, PKT_user_id *uid,
else
user_id = user_id_node->pkt->pkt.user_id;
+ /* If the user id is revoked or expired, then skip it. */
if (user_id->is_revoked || user_id->is_expired)
- /* If the user id is revoked or expired, then skip it. */
{
- char *s;
- if (user_id->is_revoked && user_id->is_expired)
- s = "revoked and expired";
- else if (user_id->is_revoked)
- s = "revoked";
- else
- s = "expire";
-
- log_info ("TOFU: Ignoring %s user id (%s)\n", s, user_id->name);
+ if (DBG_TRUST)
+ {
+ char *s;
+ if (user_id->is_revoked && user_id->is_expired)
+ s = "revoked and expired";
+ else if (user_id->is_revoked)
+ s = "revoked";
+ else
+ s = "expire";
+
+ log_debug ("TOFU: Ignoring %s user id (%s)\n",
+ s, user_id->name);
+ }
continue;
}