-
Notifications
You must be signed in to change notification settings - Fork 170
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
Changes to the log level only affect the 'sigal' logger #502
Comments
I cannot reproduce, the submodule loggers inherit the parent's configuration. Example with the test gallery after adding some fake option to ffmpeg:
|
Thanks for the feedback. I'm quite certain now that this issue is OS specific. I testet it on Debian 12 and --debug works fine there. On Windows it does not. Have you tested on Windows? It seems that multiprocessing works differently on Windows (no fork), so the log is not inherited on Windows subprocesses. But I couldn't find a recommended solution for this yet. |
No I have never tested on Windows. There are some bug report on Windows ( windows ) so I guess it more or less works but I cannot help with the debugging ;). Also would be great to have a CI job on Windows, if someone is motivated to do that (and fix the bugs :)). |
The --verbose and --debug options only change the log level for the 'sigal' logger. This means that many logging messages will still not be visible, since they use a logger with a different name derived from the modules name. For example 'sigal.video' inside the video module, but also other modules, plugins and libaries.
In my chase the system couldn't find ffmpeg and couldn't get a proper log even with the --debug option.
I changed this in my local build by adding "logging.basicConfig(level=level)" at the start of the init_logging function. But I have no idea if this is the right way to do this.
The text was updated successfully, but these errors were encountered: