Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Commit 6391b1a

Browse files
committed
Fix #194: Remove debug logging from rsa/key.py
1 parent b1679ec commit 6391b1a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
- Use the Chinese Remainder Theorem when decrypting with a private key. This
1313
makes decryption 2-4x faster
1414
([#163](https://github.com/sybrenstuvel/python-rsa/pull/163)).
15+
- Remove debug logging from `rsa/key.py`
16+
([#194](https://github.com/sybrenstuvel/python-rsa/pull/194)).
1517

1618
## Version 4.7.2 - released 2021-02-24
1719

rsa/key.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
3232
"""
3333

34-
import logging
3534
import threading
3635
import typing
3736
import warnings
@@ -43,7 +42,6 @@
4342
import rsa.core
4443

4544

46-
log = logging.getLogger(__name__)
4745
DEFAULT_EXPONENT = 65537
4846

4947

@@ -669,9 +667,7 @@ def find_p_q(
669667
qbits = nbits - shift
670668

671669
# Choose the two initial primes
672-
log.debug("find_p_q(%i): Finding p", nbits)
673670
p = getprime_func(pbits)
674-
log.debug("find_p_q(%i): Finding q", nbits)
675671
q = getprime_func(qbits)
676672

677673
def is_acceptable(p: int, q: int) -> bool:

0 commit comments

Comments
 (0)