Skip to content

Commit

Permalink
Add error log for fetch table schema (#1753)
Browse files Browse the repository at this point in the history
For a large number of tables in the mirror, when schema fetching for one
of the tables fails, the top level caller of `getTableSchema` logs the
error which can be too big to log, yielding a temporal message:
```
Complete result exceeds size limit
```

This PR adds a log so that we know which table schema fetch failed
  • Loading branch information
Amogh-Bharadwaj authored May 23, 2024
1 parent cac1780 commit 6fd955e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flow/connectors/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ func (c *PostgresConnector) GetTableSchema(
}
tableSchema, err := c.getTableSchemaForTable(ctx, tableName, req.System)
if err != nil {
c.logger.Info("error fetching schema for table "+tableName, slog.Any("error", err))
return nil, err
}
res[tableName] = tableSchema
Expand Down

0 comments on commit 6fd955e

Please sign in to comment.