-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move logger level setting to dandiapi top level module
- Loading branch information
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
from __future__ import annotations | ||
|
||
from importlib.metadata import version | ||
import logging | ||
|
||
from django.conf import settings | ||
|
||
# This project module is imported for us when Django starts. To ensure that Celery app is always | ||
# defined prior to any shared_task definitions (so those tasks will bind to the app), import | ||
# the Celery module here for side effects. | ||
from .celery import app as _celery_app # noqa: F401 | ||
|
||
__version__ = version('dandiapi') | ||
|
||
# Configure the logging level on all DANDI loggers. | ||
logging.getLogger(__name__).setLevel(settings.DANDI_LOG_LEVEL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters