Skip to content

Commit

Permalink
fix log line
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Oct 29, 2023
1 parent b370d9d commit e515a5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flow/connectors/snowflake/snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,6 @@ func (c *SnowflakeConnector) SyncRecords(req *model.SyncRecordsRequest) (*model.
}
}

log.Infof("sync mode is for flow %s is MULTI_INSERT", req.FlowJobName)

// transaction for SyncRecords
syncRecordsTx, err := c.database.BeginTx(c.ctx, nil)
if err != nil {
Expand All @@ -514,6 +512,7 @@ func (c *SnowflakeConnector) SyncRecords(req *model.SyncRecordsRequest) (*model.
}()

if req.SyncMode == protos.QRepSyncMode_QREP_SYNC_MODE_MULTI_INSERT {
log.Infof("sync mode is for flow %s is MULTI_INSERT", req.FlowJobName)
res, err = c.syncRecordsViaSQL(req, rawTableIdentifier, syncBatchID, syncRecordsTx)
if err != nil {
return nil, err
Expand Down

0 comments on commit e515a5c

Please sign in to comment.