We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6faddad commit 85ad94cCopy full SHA for 85ad94c
adafruit_logging.py
@@ -169,13 +169,14 @@ def _addLogger(logger_name: str):
169
# pylint:disable=global-statement
170
def getLogger(logger_name: str) -> "Logger":
171
"""Create or retrieve a logger by name; only retrieves loggers
172
- made using this function
+ made using this function; if a Logger with this name does not
173
+ exist it is created
174
175
:param str logger_name: The name of the `Logger` to create/retrieve.
176
177
"""
178
_addLogger(logger_name)
- return logger_cache.get(logger_name, None)
179
+ return logger_cache[logger_name]
180
181
182
# pylint:enable=global-statement
0 commit comments