mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #2785 from mvdbeek/make_loggers_function_atomic
Make loggers function atomic
This commit is contained in:
commit
d7cfc372a5
@ -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]
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user