Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: log (#15335)

p0nyfa24028413fd
diff --git a/backend/runner/plancheck/ghost_sync_executor.go b/backend/runner/plancheck/ghost_sync_executor.go
index 197840e5f2..d110d7f37b 100644
--- a/backend/runner/plancheck/ghost_sync_executor.go
+++ b/backend/runner/plancheck/ghost_sync_executor.go
@@ -13,6 +13,7 @@ import (
"github.com/pkg/errors"
"github.com/bytebase/bytebase/backend/common"
+ "github.com/bytebase/bytebase/backend/common/log"
"github.com/bytebase/bytebase/backend/component/dbfactory"
"github.com/bytebase/bytebase/backend/component/ghost"
api "github.com/bytebase/bytebase/backend/legacyapi"
@@ -142,7 +143,7 @@ func (e *GhostSyncExecutor) Run(ctx context.Context, config *storepb.PlanCheckRu
}
return nil
}(); err != nil {
- slog.Warn("failed to cleanup gh-ost temp tables")
+ slog.Warn("failed to cleanup gh-ost temp tables", log.BBError(err))
}
}()
diff --git a/backend/runner/taskrun/schema_update_ghost_executor.go b/backend/runner/taskrun/schema_update_ghost_executor.go
index 80b7ee3f80..f7ddbfa824 100644
--- a/backend/runner/taskrun/schema_update_ghost_executor.go
+++ b/backend/runner/taskrun/schema_update_ghost_executor.go
@@ -129,7 +129,7 @@ func (exec *SchemaUpdateGhostExecutor) RunOnce(ctx context.Context, driverCtx co
}
return nil
}(); err != nil {
- slog.Warn("")
+ slog.Warn("failed to cleanup gh-ost temp tables", log.BBError(err))
}
}()