Skip to content

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

chore: remove unwanted Printf (#1091)

Danny Xu3858b979f408
diff --git a/plugin/advisor/mysql/mysql_migration_compatibility_advisor.go b/plugin/advisor/mysql/mysql_migration_compatibility_advisor.go
index b2018b8eee..2d45b132ee 100644
--- a/plugin/advisor/mysql/mysql_migration_compatibility_advisor.go
+++ b/plugin/advisor/mysql/mysql_migration_compatibility_advisor.go
@@ -72,7 +72,6 @@ func (v *compatibilityChecker) Enter(in ast.Node) (ast.Node, bool) {
// ALTER TABLE
case *ast.AlterTableStmt:
for _, spec := range node.Specs {
- fmt.Printf("spec %d: %+v\n\n", spec.Tp, spec)
// RENAME COLUMN
if spec.Tp == ast.AlterTableRenameColumn {
code = common.CompatibilityRenameColumn
diff --git a/server/sql.go b/server/sql.go
index 8558d38117..b385b83793 100644
--- a/server/sql.go
+++ b/server/sql.go
@@ -254,7 +254,6 @@ func (s *Server) syncEngineVersionAndSchema(ctx context.Context, instance *api.I
// Sync schema
userList, schemaList, err := driver.SyncSchema(ctx)
if err != nil {
- fmt.Printf("sync schema error: %v\n", err)
resultSet.Error = err.Error()
} else {
var createTable = func(database *api.Database, tableCreate *api.TableCreate) (*api.Table, error) {
diff --git a/store/environment.go b/store/environment.go
index 74e108187b..0c1b949dfe 100644
--- a/store/environment.go
+++ b/store/environment.go
@@ -244,7 +244,6 @@ func (s *Store) createEnvironmentImpl(ctx context.Context, tx *sql.Tx, create *a
ORDER BY "order" DESC
LIMIT 1
`)
- fmt.Printf("Yang1: %v\n", err1)
if err1 != nil {
return nil, FormatError(err1)
}
@@ -254,7 +253,6 @@ func (s *Store) createEnvironmentImpl(ctx context.Context, tx *sql.Tx, create *a
if err1 := row1.Scan(
&order,
); err1 != nil {
- fmt.Printf("Yang2: %v\n", err1)
return nil, FormatError(err1)
}
if err := row1.Close(); err != nil {
@@ -278,7 +276,6 @@ func (s *Store) createEnvironmentImpl(ctx context.Context, tx *sql.Tx, create *a
order+1,
)
- fmt.Printf("Yang3: %v\n", err2)
if err2 != nil {
return nil, FormatError(err2)
}
@@ -296,7 +293,6 @@ func (s *Store) createEnvironmentImpl(ctx context.Context, tx *sql.Tx, create *a
&envRaw.Name,
&envRaw.Order,
); err != nil {
- fmt.Printf("Yang4: %v\n", err)
return nil, FormatError(err)
}