Skip to content

Commit 471f0b7

Browse files
authored
Merge pull request #41 from isacben/fix-default-logging-level
Make default logging level be consistent with CPython
2 parents e5036ac + 6f1b3d5 commit 471f0b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

adafruit_logging.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
level (00 to 50). The str in each tuple is the string representation of
3939
that logging level ("NOTSET" to "CRITICAL"; see below).
4040
NOTSET: int
41-
The NOTSET logging level, which is the default logging level that can be
42-
used to indicate that a `Logger` should process any logging messages,
43-
regardless of how severe those messages are.
41+
The NOTSET logging level can be used to indicate that a `Logger` should
42+
process any logging messages, regardless of how severe those messages are.
4443
DEBUG: int
4544
The DEBUG logging level, which is the lowest (least severe) real level.
4645
INFO: int
4746
The INFO logging level for informative/informational messages.
4847
WARNING: int
49-
The WARNING logging level for warnings that should be addressed/fixed.
48+
The WARNING logging level, which is the default logging level, for warnings
49+
that should be addressed/fixed.
5050
ERROR: int
5151
The ERROR logging level for Python exceptions that occur during runtime.
5252
CRITICAL: int
@@ -268,10 +268,10 @@ class Logger:
268268
269269
:param Hashable name: The name of the logger, typically assigned by the
270270
value from `getLogger`; this is typically a ``str``
271-
:param int level: (optional) The log level, default is ``NOTSET``
271+
:param int level: (optional) The log level, default is ``WARNING``
272272
"""
273273

274-
def __init__(self, name: Hashable, level: int = NOTSET) -> None:
274+
def __init__(self, name: Hashable, level: int = WARNING) -> None:
275275
"""Create an instance."""
276276
self._level = level
277277
self.name = name

0 commit comments

Comments
 (0)