Skip to content

Commit

Permalink
Restrict default log level to just DANDI loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
waxlamp committed Dec 19, 2024
1 parent b07bfe1 commit dc3549d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dandiapi/api/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def ready(self):
import dandiapi.api.checks # noqa: F401, RUF100
import dandiapi.api.signals # noqa: F401

logging.getLogger().setLevel(settings.DANDI_LOG_LEVEL)
# Configure the logging level on just DANDI loggers.
logging.getLogger(__name__.split('.')[0]).setLevel(settings.DANDI_LOG_LEVEL)

if hasattr(settings, 'SENTRY_DSN'):
sentry_sdk.init(
Expand Down

0 comments on commit dc3549d

Please sign in to comment.