aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-12-03 14:38:25 +0000
committerWerner Koch <[email protected]>2015-12-04 06:36:14 +0000
commit218a52787a87be6b7481a39f87d212d6ef594e97 (patch)
tree1db6e919102e4283ff82b154cad517a5a2bc215a /g10/mainproc.c
parentscd: Fix for removing the prefix. (diff)
downloadgnupg-218a52787a87be6b7481a39f87d212d6ef594e97.tar.gz
gnupg-218a52787a87be6b7481a39f87d212d6ef594e97.zip
Do not translate messages printed with log_debug.
* common/asshelp.c (start_new_gpg_agent): Do not i18n string. (start_new_dirmngr): Ditto. * g10/mainproc.c (proc_encrypted): Ditto. Print only if debug is enabled. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r--g10/mainproc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 3c1508d89..868832542 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -646,8 +646,9 @@ proc_encrypted (CTX c, PACKET *pkt)
if (gpg_err_code (result) == GPG_ERR_BAD_KEY
&& *c->dek->s2k_cacheid != '\0')
{
- log_debug (_("cleared passphrase cached with ID: %s\n"),
- c->dek->s2k_cacheid);
+ if (opt.debug)
+ log_debug ("cleared passphrase cached with ID: %s\n",
+ c->dek->s2k_cacheid);
passphrase_clear_cache (NULL, c->dek->s2k_cacheid, 0);
}
glo_ctrl.lasterr = result;