Skip to content

Commit e2a326d

Browse files
authored
Merge pull request #34 from tekktrik/dev/logging-changes
Add StreamHandler to logger, add missing dependencies
2 parents 5172f25 + abcd99e commit e2a326d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

adafruit_rsa/key.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
# pylint: disable=invalid-name, useless-object-inheritance, redefined-builtin, no-name-in-module, too-few-public-methods
5151
log = logging.getLogger(__name__)
52+
log.addHandler(logging.StreamHandler())
5253
log.setLevel(logging.INFO)
5354

5455
DEFAULT_EXPONENT = 65537

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# SPDX-License-Identifier: Unlicense
44

55
Adafruit-Blinka>=7.0.0
6+
adafruit-circuitpython-logging>=4.0.0
67
pyasn1

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
# Author details
3434
author="Adafruit Industries",
3535
author_email="circuitpython@adafruit.com",
36-
install_requires=["Adafruit-Blinka>=7.0.0"],
36+
install_requires=[
37+
"Adafruit-Blinka>=7.0.0",
38+
"adafruit-circuitpython-logging>=4.0.0",
39+
"pyasn1",
40+
],
3741
# Choose your license
3842
license="MIT",
3943
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)