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

Add configurable log level #68

Merged
merged 4 commits into from
Nov 10, 2023
Merged

Conversation

pederhan
Copy link
Member

@pederhan pederhan commented Nov 9, 2023

This PR adds the ability to control the log level with the new config option zac.log_level:

[zac]
log_level = "DEBUG

While the log level technically can be specified as an integer (0, 10 ,20, etc.) it's not recommended.

Fixes

This PR also fixes the problem of multiprocessing_logging causing an incredibly long traceback whenever the application is terminated, by calling multiprocessing_logging.install_mp_handler() before the logger is configured.

@pederhan pederhan merged commit cf5d04a into unioslo:master Nov 10, 2023
3 checks passed
@pederhan pederhan deleted the logging-config branch November 10, 2023 10:08
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.

1 participant