Skip to content

feat(engine): manage logs of PostgreSQL containers to simplify diagnostics (#349)

Denis O requested to merge 349-automatic-diagnostic-repository into master

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

#349 (closed)

Examples

Collected logs during failures:

image

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

Merge request reports