-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow running with debug logging #123
Comments
I like that thought, too! I'd avoid touching the desktop app here, since that's a lot of things. I was wondering if the With that said, that's kind of ugly since it doesn't map to Kolibri's configuration file, so maybe we really do want a Anyway, with that in place (and we can edit our own |
Agreed. After looking at how to plumb a CLI option all the way through, it didn't seem worth the trouble. Untested PR handling |
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
While the systemd |
Soon the flatpak will use the `KOLIBRI_DEBUG` environment variable to enable debug mode. Pass the environment variable through while defaulting the value to `false`. Helps: endlessm/endless-key-flatpak#123
I'll reopen this until we've wrangled a release through the tubes. |
This didn't quite work as expected (should have actually tested first). Since the daemon is D-Bus activated, it won't inherit the environment from For the system daemon case, I believe the change to the wrapper script in endlessm/eos-kolibri#31 + a systemd override will work since the wrapper script is invoked for the D-Bus service. However, it may be unnecessary if you have the flatpak override in place. |
Sometimes I'd really like to be able to run the daemon with debug logging. The simplest way to do this is to call
kolibri.main.initialize(debug=True)
. Unfortunately, theinitialize
call is buried a few layers down. @dylanmccall do you have any ideas about the best way to plumb this through?The text was updated successfully, but these errors were encountered: