summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2022-03-13 11:53:03 +0100
committerSybren A. Stüvel <sybren@stuvel.eu>2022-03-13 12:02:15 +0100
commit6391b1a03682c3493ea69c5a9698277ba9d53a9c (patch)
treee5057c5e29bfa6a93b42ffb4704bcc9a7633362e
parentb1679ecf5a88578dbaca1c39ad499b7f39948125 (diff)
downloadrsa-git-6391b1a03682c3493ea69c5a9698277ba9d53a9c.tar.gz
Fix #194: Remove debug logging from `rsa/key.py`
-rw-r--r--CHANGELOG.md2
-rw-r--r--rsa/key.py4
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: