Skip to content

chore: remove too detailed error message from the logs

Artyom Kartasov requested to merge delete-clone-logs into master

Description

Remove too detailed error message (stack trace) from the logs

Related issue

Examples

2023/06/13 23:16:20 base.go:297: [ERROR] Failed to delete a clone: RunnerError(cmd="HIDDEN", inerr="exit status 1", stderr="Error response from daemon: removal of container dblab_clone_6343 is already in progress
" exit="1")
failed to remove container
gitlab.com/postgres-ai/database-lab/v3/internal/provision/databases/postgres.Stop
        /builds/postgres-ai/database-lab/engine/internal/provision/databases/postgres/postgres.go:155
gitlab.com/postgres-ai/database-lab/v3/internal/provision.(*Provisioner).StopSession
        /builds/postgres-ai/database-lab/engine/internal/provision/mode_local.go:220
gitlab.com/postgres-ai/database-lab/v3/internal/cloning.(*Base).DestroyClone.func1
        /builds/postgres-ai/database-lab/engine/internal/cloning/base.go:296
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1571
failed to stop a container
gitlab.com/postgres-ai/database-lab/v3/internal/provision.(*Provisioner).StopSession
        /builds/postgres-ai/database-lab/engine/internal/provision/mode_local.go:221
gitlab.com/postgres-ai/database-lab/v3/internal/cloning.(*Base).DestroyClone.func1
        /builds/postgres-ai/database-lab/engine/internal/cloning/base.go:296
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1571.

Checklist

  • MR description has been reviewed
  • MR changes are functionally tested
  • MR does NOT have API/CLI changes OR there are API/CLI changes and they have been reviewed & DOCS ARE ADJUSTED (reference doc, etc)
  • MR does NOT have UI changes OR there are UI changes and they have been reviewed & UX IS REVIEWED

Merge request reports