12345678910111213141516171819202122232425262728 |
- # -*- coding: utf-8 -*-
- """
- (c) 2020 - Copyright ...
-
- Authors:
- zPlus <zplus@peers.community>
-
- Notes
- This module is kept empty because when the module forgefed.tasks is
- imported by celery (when the queue worker is started), __init__.py is
- also executed and we don't want to start a new Flask instance.
- The entry point of the application is app.py.
-
- We only set the logging options here because the "logging" module works
- hierarchically. When we create a new log object using
- logging.getLogger(__name__) the logger object is called
- "forgefed.modulename" and will inherit its settings from the root
- logger. So we set them here instead of in every single module.
- https://docs.python.org/3/library/logging.html#logger-objects
- """
- import logging
- from . import settings
- log = logging.getLogger(__name__)
- log.setLevel(settings.LOG_LEVEL)
|