Skip to content

Commit 30ceea1

Browse files
committed
Update examples
1 parent 7a796da commit 30ceea1

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

examples/logging_filehandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import storage
88
import adafruit_sdcard
99
import adafruit_logging as logging
10-
from adafruit_logging.extensions import FileHandler
10+
from adafruit_logging import FileHandler
1111

1212
# Get chip select pin depending on the board, this one is for the Feather M4 Express
1313
sd_cs = board.D10

examples/logging_simpletest.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@
1919
# This should produce no output
2020

2121
null_logger = logging.getLogger(None)
22-
23-
null_logger.setLevel(logging.ERROR)
24-
null_logger.info("Info message")
25-
null_logger.error("Error message")
26-
27-
# This should produce no output
28-
29-
null_logger = logging.getLogger("")
22+
null_logger.addHandler(logging.NullHandler)
3023

3124
null_logger.setLevel(logging.ERROR)
3225
null_logger.info("Info message")

0 commit comments

Comments
 (0)