unioslo / zabbix-auto-config

MIT License
2 stars 5 forks source link

Add configurable log level #68

Closed pederhan closed 10 months ago

pederhan commented 10 months ago

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.