Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shim-airbyte-cdk: redirect rogue outputs to stdout #2134

Merged
merged 1 commit into from
Nov 8, 2024
Merged

Conversation

williamhbaker
Copy link
Member

@williamhbaker williamhbaker commented Nov 8, 2024

Description:

Some imported connectors have errant print calls or similar that output directly to stdout, which Flow will otherwise interpret as a captured document or checkpoint.

This is really ugly, but to prevent it from happening we can redirect stdout to stderr after the task outputs have been initialized. That way the printed output is treated as logs instead of capture data.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

Some imported connectors have errant `print` calls or similar that output
directly to stdout, which Flow will otherwise interpret as a captured document
or checkpoint.

This is really ugly, but to prevent it from happening we can redirect stdout to
stderr after the task outputs have been initialized. That way the printed output
is treated as logs instead of capture data.
Copy link
Contributor

@Alex-Bair Alex-Bair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@williamhbaker williamhbaker merged commit ec3334b into main Nov 8, 2024
72 of 77 checks passed
@williamhbaker williamhbaker deleted the wb/front-log branch November 8, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants