Merge pull request #2785 from mvdbeek/make_loggers_function_atomic

Make loggers function atomic
This commit is contained in:
Benoit Chesneau 2022-08-06 18:29:55 +02:00 committed by GitHub
commit d7cfc372a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ CONFIG_DEFAULTS = dict(
def loggers():
""" get list of all loggers """
root = logging.root
existing = root.manager.loggerDict.keys()
existing = list(root.manager.loggerDict.keys())
return [logging.getLogger(name) for name in existing]