Skip to content

Commit d0ada1e

Browse files
authored
Merge pull request #25 from tekktrik/dev/logging-changes
Add StreamHandler to logger, add missing dependencies
2 parents 533708b + 28ed27d commit d0ada1e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

adafruit_gc_iot_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ def __init__(self, esp=None, secrets=None, log=False):
315315
self.logger = None
316316
if log is True:
317317
self.logger = logging.getLogger("log")
318+
self.logger.addHandler(logging.StreamHandler())
318319
self.logger.setLevel(logging.DEBUG)
319320
# Configuration, from secrets file
320321
self._proj_id = secrets["project_id"]

requirements.txt

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

55
Adafruit-Blinka
6+
adafruit-circuitpython-jwt
7+
adafruit-circuitpython-logging>=4.0.1

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"],
36+
install_requires=[
37+
"Adafruit-Blinka",
38+
"adafruit-circuitpython-jwt",
39+
"adafruit-circuitpython-logging>=4.0.1",
40+
],
3741
# Choose your license
3842
license="MIT",
3943
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)