feat(docs): Move docstring and clarify debug

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2643>
environments/review-docs-fix-b-9vkwmw/deployments/18818
Ciarán Ainsworth 2023-11-23 10:39:17 +00:00 zatwierdzone przez Marge
rodzic 43c2861252
commit 4740df9d3c
1 zmienionych plików z 18 dodań i 13 usunięć

Wyświetl plik

@ -18,6 +18,24 @@ ENV = env
LOGLEVEL = (
"DEBUG" if env.bool("DEBUG", False) else env("LOGLEVEL", default="info").upper()
)
"""
Default logging level for the Funkwhale processes.
.. note::
The `DEBUG` variable overrides the `LOGLEVEL` if it is set to `TRUE`.
The `LOGLEVEL` value only applies if `DEBUG` is `false` or not present.
Available levels:
- ``debug``
- ``info``
- ``warning``
- ``error``
- ``critical``
"""
IS_DOCKER_SETUP = env.bool("IS_DOCKER_SETUP", False)
@ -39,19 +57,6 @@ if env("FUNKWHALE_SENTRY_DSN", default=None) is not None:
)
sentry_sdk.set_tag("instance", env("FUNKWHALE_HOSTNAME"))
"""
Default logging level for the Funkwhale processes
Available levels:
- ``debug``
- ``info``
- ``warning``
- ``error``
- ``critical``
""" # pylint: disable=W0105
LOGGING_CONFIG = None
logging.config.dictConfig(
{