Skip to content

Commit

Permalink
more reduce logging
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Dec 17, 2024
1 parent e05c2a0 commit 3292a4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/connectors/external_metadata/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"log/slog"
"time"

"github.com/jackc/pglogrepl"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxpool"
Expand Down Expand Up @@ -135,7 +136,7 @@ func (p *PostgresMetadata) GetLastNormalizeBatchID(ctx context.Context, jobName
}

func (p *PostgresMetadata) SetLastOffset(ctx context.Context, jobName string, offset int64) error {
p.logger.Info("updating last offset", "offset", offset)
p.logger.Debug("updating last offset", slog.String("offset", pglogrepl.LSN(offset).String()))
_, err := p.pool.Exec(ctx, `
INSERT INTO `+lastSyncStateTableName+` (job_name, last_offset, sync_batch_id)
VALUES ($1, $2, $3)
Expand Down

0 comments on commit 3292a4e

Please sign in to comment.