Skip to content

Commit

Permalink
Merge pull request #2785 from mvdbeek/make_loggers_function_atomic
Browse files Browse the repository at this point in the history
Make loggers function atomic
  • Loading branch information
benoitc committed Aug 6, 2022
2 parents 027f04b + f186fa3 commit d7cfc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/glogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
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]


Expand Down

1 comment on commit d7cfc37

@swapniljariwala
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am just curious, how does this change makes the operation atomic, if someone can point to relevant reference that will be great!

Please sign in to comment.