gpg: Silence message about ignoring revoked user ids.
authorWerner Koch <wk@gnupg.org>
Wed, 20 Jan 2016 14:51:18 +0000 (15:51 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 20 Jan 2016 14:51:18 +0000 (15:51 +0100)
* 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>
g10/trustdb.c

index d3a186f..8f2b2cb 100644 (file)
@@ -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;
            }