From 6391b1a03682c3493ea69c5a9698277ba9d53a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sun, 13 Mar 2022 11:53:03 +0100 Subject: Fix #194: Remove debug logging from `rsa/key.py` --- CHANGELOG.md | 2 ++ rsa/key.py | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3781be9..969ef2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ - Use the Chinese Remainder Theorem when decrypting with a private key. This makes decryption 2-4x faster ([#163](https://github.com/sybrenstuvel/python-rsa/pull/163)). +- Remove debug logging from `rsa/key.py` + ([#194](https://github.com/sybrenstuvel/python-rsa/pull/194)). ## Version 4.7.2 - released 2021-02-24 diff --git a/rsa/key.py b/rsa/key.py index 9491747..d4feb42 100644 --- a/rsa/key.py +++ b/rsa/key.py @@ -31,7 +31,6 @@ of pyasn1. """ -import logging import threading import typing import warnings @@ -43,7 +42,6 @@ import rsa.randnum import rsa.core -log = logging.getLogger(__name__) DEFAULT_EXPONENT = 65537 @@ -669,9 +667,7 @@ def find_p_q( qbits = nbits - shift # Choose the two initial primes - log.debug("find_p_q(%i): Finding p", nbits) p = getprime_func(pbits) - log.debug("find_p_q(%i): Finding q", nbits) q = getprime_func(qbits) def is_acceptable(p: int, q: int) -> bool: -- cgit v1.2.1