WeblateOrg / WeblateOrg/weblate
Log system events and warn on errors
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 1.4k
- Avg merge
- 9h 53m
- Merged PRs (30d)
- 395
Description
### Describe the problem
https://github.com/WeblateOrg/weblate/issues/12107 makes it apparent that the database backup has failed in the background, but nobody was reading the logs to notice that.
### Describe the solution you would like
* Weblate should log important system events.
* Initially, it should cover database and settings backup.
* The logs should be browsable in the management interface.
* Old logs should be automatically purged with a configurable period (similar as `ADDON_ACTIVITY_LOG_EXPIRY`).
* There should be a deployment check to verify that important operations are running as scheduled.
### Describe alternatives you have considered
The thing to consider is introducing something more generic to cover site-wide logs for this, backup specific logs (see weblate.wladmin.models.BackupLog), logs for addons (see https://github.com/WeblateOrg/weblate/pull/11080) and logs for automatic translation (see https://github.com/WeblateOrg/weblate/issues/9638). Maybe some of these could actually be based on `weblate.trans.models.change.Change`?
### Screenshots
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.