Skip to content

Commit

Permalink
Add DB to Logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Mar 22, 2024
1 parent 7ac7dfb commit 8fe4f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/mysql/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (s *Source) Run(ctx context.Context, writer kafkalib.BatchWriter) error {
}

func (s Source) snapshotTable(ctx context.Context, writer kafkalib.BatchWriter, tableCfg config.MySQLTable) error {
logger := slog.With(slog.String("table", tableCfg.Name))
logger := slog.With(slog.String("table", tableCfg.Name), slog.String("database", s.cfg.Database))
snapshotStartTime := time.Now()

adapter, err := adapter.NewMySQLAdapter(s.db, s.cfg.Database, tableCfg)
Expand Down

0 comments on commit 8fe4f97

Please sign in to comment.