Skip to content

Commit

Permalink
reduce logging
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Nov 29, 2023
1 parent 36a981a commit 4a58be6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions go/vt/vtctl/workflow/materializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,10 @@ func (mz *materializer) deploySchema() error {
log.Error(vterrors.Wrapf(err, "AtomicCopy: failed to normalize schema via schemadiff"))
} else {
applyDDLs = schema.ToQueries()
log.Infof("AtomicCopy used, and schema was normalized via schemadiff. New queries: %v", applyDDLs)
log.Infof("AtomicCopy used, and schema was normalized via schemadiff. %v queries normalized", len(applyDDLs))
}
}
sql := strings.Join(applyDDLs, ";\n")
log.Infof("materializer.deploySchema: sql=%v", sql)

_, err = mz.tmc.ApplySchema(mz.ctx, targetTablet.Tablet, &tmutils.SchemaChange{
SQL: sql,
Expand Down
3 changes: 1 addition & 2 deletions go/vt/wrangler/materializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1273,11 +1273,10 @@ func (mz *materializer) deploySchema(ctx context.Context) error {
log.Error(vterrors.Wrapf(err, "AtomicCopy: failed to normalize schema via schemadiff"))
} else {
applyDDLs = schema.ToQueries()
log.Infof("AtomicCopy used, and schema was normalized via schemadiff. New queries: %v", applyDDLs)
log.Infof("AtomicCopy used, and schema was normalized via schemadiff. %v queries normalized", len(applyDDLs))
}
}
sql := strings.Join(applyDDLs, ";\n")
log.Infof("materializer.deploySchema: sql=%v", sql)

_, err = mz.wr.tmc.ApplySchema(ctx, targetTablet.Tablet, &tmutils.SchemaChange{
SQL: sql,
Expand Down

0 comments on commit 4a58be6

Please sign in to comment.