Skip to content

Commit e714af0

Browse files
committed
fix lint, log to debug
1 parent e283208 commit e714af0

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

flow/connectors/mysql/cdc.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ func (c *MySqlConnector) PullRecords(
388388
// reset timeoutCtx to a low value and wait for inTx to become false
389389
// cancelTimeout should be called by defer, spurious lint
390390
cancelTimeout()
391-
//nolint
391+
//nolint:govet
392392
timeoutCtx, cancelTimeout = context.WithTimeout(ctx, 10*time.Second)
393393
overtime = true
394394
} else {
@@ -407,7 +407,7 @@ func (c *MySqlConnector) PullRecords(
407407
if err != nil {
408408
if errors.Is(err, context.DeadlineExceeded) {
409409
if !inTx {
410-
//nolint
410+
//nolint:govet
411411
return nil
412412
}
413413
// if in tx, don't let syncer exit due to deadline exceeded
@@ -492,7 +492,8 @@ func (c *MySqlConnector) PullRecords(
492492
if schemaIdx == -1 {
493493
if !skewLossReported {
494494
skewLossReported = true
495-
c.logger.Warn("Unknown column name received, ignoring", slog.String("name", string(ev.Table.ColumnName[idx])))
495+
c.logger.Warn("Unknown column name received, ignoring",
496+
slog.String("name", string(ev.Table.ColumnName[idx])))
496497
}
497498
} else {
498499
return schema.Columns[schemaIdx]

flow/connectors/postgres/cdc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ func processMessage[Items model.Items](
709709

710710
return processRelationMessage[Items](ctx, p, currentClientXlogPos, msg)
711711
case *pglogrepl.LogicalDecodingMessage:
712-
logger.Info("LogicalDecodingMessage",
712+
logger.Debug("LogicalDecodingMessage",
713713
slog.Bool("Transactional", msg.Transactional),
714714
slog.String("Prefix", msg.Prefix),
715715
slog.String("LSN", msg.LSN.String()))

0 commit comments

Comments
 (0)