Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make logging level of the django app configurable #2078

Merged
merged 10 commits into from
Jan 2, 2025
Prev Previous commit
Next Next commit
Set global logging level on the root logger
  • Loading branch information
waxlamp committed Dec 13, 2024
commit b07bfe126db504ab7c879b37eefbad647c2baac3
2 changes: 1 addition & 1 deletion dandiapi/api/apps.py
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ def ready(self):
import dandiapi.api.checks # noqa: F401, RUF100
import dandiapi.api.signals # noqa: F401

logging.getLogger(__name__).setLevel(settings.DANDI_LOG_LEVEL)
logging.getLogger().setLevel(settings.DANDI_LOG_LEVEL)
waxlamp marked this conversation as resolved.
Show resolved Hide resolved

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