From 5f17b8b0713af19b9cda5a60ba07966067a0cfa5 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Thu, 20 Jun 2024 08:18:17 +0100 Subject: [PATCH] Fix #239: Remove logging of decryption result. --- README.rst | 1 + gnupg.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 50a5bc7..6a1c5a4 100644 --- a/README.rst +++ b/README.rst @@ -82,6 +82,7 @@ Released: Not yet * Fix #237: Ensure local variable is initialized even when an exception occurs. +* Fix #239: Remove logging of decryption result. 0.5.2 ----- diff --git a/gnupg.py b/gnupg.py index 7bf3fb8..791af77 100644 --- a/gnupg.py +++ b/gnupg.py @@ -2197,7 +2197,7 @@ def decrypt_file(self, fileobj_or_path, always_trust=False, passphrase=None, out args.extend(extra_args) result = self.result_map['crypt'](self) self._handle_io(args, fileobj_or_path, result, passphrase, binary=True) - logger.debug('decrypt result[:100]: %r', result.data[:100]) + # logger.debug('decrypt result[:100]: %r', result.data[:100]) return result def get_recipients(self, message, **kwargs):