mirror of
https://github.com/zulip/zulip.git
synced 2026-06-12 21:00:58 +08:00
The name `create_logger` suggests something much bigger than what this function actually does -- the logger doesn't any more or less exist after the function is called than before. Its one real function is to send logs to a specific file. So, pull out that logic to an appropriately-named function just for it. We already use `logging.getLogger` in a number of places to simply get a logger by name, and the old `create_logger` callsites can do the same. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| counts.py | ||
| fixtures.py | ||
| time_utils.py | ||