Skip to content

Commit

Permalink
Log warnings at end of sync (#1869)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwooo authored Dec 27, 2024
1 parent 42e7e9b commit 88a362d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions destinations/airbyte-faros-destination/src/destination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,17 @@ export class FarosDestination extends AirbyteDestination<DestinationConfig> {
} finally {
// Log collected statistics
stats.log(this.logger, dryRunEnabled ? 'Would write' : 'Wrote');

// Log warnings
if (syncErrors.src.warnings.length) {
this.logger.warn(
`Encountered ${syncErrors.src.warnings.length} source warning(s)`
);
for (const warning of syncErrors.src.warnings) {
this.logger.warn(`Warning: ${warning.summary}`);
}
}

if (logFiles) {
const logs = await logFiles.sortedLogs(this.logger);
if (account?.local && sync?.syncId && logs) {
Expand Down

0 comments on commit 88a362d

Please sign in to comment.