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

Initialize Kolibri debug from KOLIBRI_DEBUG environment variable #125

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

dbnicholson
Copy link
Member

If the KOLIBRI_DEBUG environment variable is set to a truthy value, pass debug=True to the Kolibri initialization routine. This enables debug logging and the Django debug mode. This is roughly equivalent to how kolibri start works since it treats KOLIBRI_DEBUG as equivalent to the --debug CLI option.

Fixes: #123

If the `KOLIBRI_DEBUG` environment variable is set to a truthy value,
pass `debug=True` to the Kolibri initialization routine. This enables
debug logging and the Django debug mode. This is roughly equivalent to
how `kolibri start` works since it treats `KOLIBRI_DEBUG` as equivalent
to the `--debug` CLI option.

Fixes: #123
@dylanmccall dylanmccall merged commit 3dd1749 into main Nov 11, 2023
2 checks passed
@dylanmccall dylanmccall deleted the kolibri-debug branch November 11, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow running with debug logging
2 participants