Tuesday, November 5, 2024
1 change · 18.0
Enhancements to existing features
The IoT Box now updates only the logging settings it needs, avoiding unwanted changes in its configuration file. It also automatically returns detailed logging to the normal warning level after a week, reducing unnecessary log volume sent to the database.
Original PR description
Logging levels updating methods used `odoo.tools` config methods. It was not adapted to the IoT Box as it was polluting the `odoo.conf` file with unwanted parameters.
We now use the `helpers.{update_,get_}conf` methods to only update the required parameters.
This commit also adds a scheduled event everyday at 00:00 to switch back to `:WARNING` log level if it was set more
than a week before, to reduce the amount of logs sent to the database.
Task: 4173458