This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new ef0043389 refactor(logs): add error logs when executing migrations
(#7633)
ef0043389 is described below
commit ef00433894232b80718bb6687c11fc896fc11b5b
Author: Lynwee <[email protected]>
AuthorDate: Wed Jun 19 18:49:38 2024 +0800
refactor(logs): add error logs when executing migrations (#7633)
---
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 ce07bea65..3a99c02e3 100644
--- a/backend/server/services/init.go
+++ b/backend/server/services/init.go
@@ -136,6 +136,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
}