Skip to content

Commit

Permalink
Log LastOffset when logging start of SyncFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Mar 13, 2024
1 parent 864978f commit fd7e4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/activities/flowable.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ func (a *FlowableActivity) SyncFlow(
}
defer connectors.CloseConnector(ctx, dstConn)

logger.Info("pulling records...")
tblNameMapping := make(map[string]model.NameAndExclude, len(options.TableMappings))
for _, v := range options.TableMappings {
tblNameMapping[v.SourceTableIdentifier] = model.NewNameAndExclude(v.DestinationTableIdentifier, v.Exclude)
Expand Down Expand Up @@ -315,6 +314,7 @@ func (a *FlowableActivity) SyncFlow(
if err != nil {
return nil, err
}
logger.Info("pulling records...", slog.Int64("LastOffset", lastOffset))

// start a goroutine to pull records from the source
recordBatch := model.NewCDCRecordStream()
Expand Down

0 comments on commit fd7e4d5

Please sign in to comment.