From c6142f1a86fb3631af82c20502bef6871f94e759 Mon Sep 17 00:00:00 2001 From: d4x1 <1507509064@qq.com> Date: Wed, 19 Jun 2024 18:16:22 +0800 Subject: [PATCH] refactor(logs): add error logs when executing migrations --- backend/server/services/init.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/server/services/init.go b/backend/server/services/init.go index 07b565fb76d..3f42efebdff 100644 --- a/backend/server/services/init.go +++ b/backend/server/services/init.go @@ -135,6 +135,7 @@ func ExecuteMigration() errors.Error { // apply all pending migration scripts err := migrator.Execute() if err != nil { + logger.Error(err, "failed to execute migration") return err }