feat(engine): manage logs of PostgreSQL containers to simplify diagnostics (#349)
Description
Implementation of containers logs collection in case of errors
Included changes:
- introduced
diagnostic
package with functions to get container and postgres logs - updated configuration to have separated configuration option for log retention:
diagnostic:
logsRetentionDays: 7
- updated
main
function to start background cron job for cleaning old logs
Related issue
Examples
Collected logs during failures:
Checklist
-
MR description has been reviewed -
MR changes are functionally tested -
MR does NOT have text changes OR there are text changes and they have been reviewed -
MR does NOT have API/CLI changes OR there are API/CLI changes and they have been reviewed -
MR does NOT have UI changes OR there are UI changes and they have been reviewed
Closes #349 (closed)
Edited by Artyom Kartasov