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

improvement(core): log stderr from exec as info #5227

Merged
merged 1 commit into from
Oct 11, 2023
Merged

improvement(core): log stderr from exec as info #5227

merged 1 commit into from
Oct 11, 2023

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Oct 10, 2023

What this PR does / why we need it:

Before this change, we logged stderr streams from
init scripts as errors but now we log it at the info level.

The reason is that some tools, e.g. gcloud, write to stderr even if it's
not an actual error.

In the case of an actual error the script exits with a non-zero
code and that's handled specifically.

So this is really just a cosmetic change to how exec provider logs are
rendered.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@eysi09 eysi09 requested a review from stefreak October 10, 2023 18:48
Before this change, we logged stderr streams from
init scripts as errors but now we log it at the info level.

The reason is that some tools, e.g. gcloud, write to stderr even if it's
not an actual error.

In the case of an actual error the script exits with a non-zero
code and that's handled specifically.

So this is really just a cosmetic change to how exec provider logs are
rendered.
@eysi09 eysi09 added this pull request to the merge queue Oct 11, 2023
Merged via the queue into main with commit c6016f4 Oct 11, 2023
42 checks passed
@eysi09 eysi09 deleted the exec-stderr branch October 11, 2023 07:24
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