Skip to content

Commit

Permalink
add some log
Browse files Browse the repository at this point in the history
  • Loading branch information
lidezhu committed Jan 2, 2025
1 parent a4c94fc commit 7909a4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cdc/entry/schema/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func NewSnapshotFromMeta(
// `tag` is used to reverse sort all versions in the generated snapshot.
tag := negative(currentTs)
for _, dbinfo := range dbinfos {
log.Info("load database", zap.Int64("dbID", dbinfo.ID), zap.Stringer("db", dbinfo.Name), zap.Stringer("changefeed", id))
if filter.ShouldIgnoreSchema(dbinfo.Name.O) {
log.Debug("ignore database", zap.Stringer("db", dbinfo.Name), zap.Stringer("changefeed", id))
continue
Expand Down Expand Up @@ -178,6 +179,7 @@ func NewSnapshotFromMeta(
}

for _, tableInfo := range tableInfos {
log.Info("load table", zap.Int64("tableID", tableInfo.ID), zap.Stringer("name", tableInfo.Name), zap.Stringer("changefeed", id))
tableInfo := model.WrapTableInfo(dbinfo.ID, dbinfo.Name.O, currentTs, tableInfo)
tableCount++
snap.inner.tables.ReplaceOrInsert(versionedID{
Expand Down

0 comments on commit 7909a4a

Please sign in to comment.