Skip to content

Conversation

@dmatysiak
Copy link

Printing warnings to STDOUT pollutes the output of any program that uses STDOUT. This patch makes sure warnings are directed to STDERR.

@Quezion
Copy link

Quezion commented Mar 22, 2022

@weavejester I'm running into an issue now where a clj invocation in my automation is returning a bogus value because of the STDOUT pollution due to key :java-home.

Warning: environ value /usr/local/openjdk-8/ for key :java-home has been overwritten with /usr/local/openjdk-17

Can this PR be merged into a new release? I'd like to uptake it so that I can introduce Environ into this app, but it's a hard sell to the team if I can't get it working without kludges.

@weavejester
Copy link
Owner

This PR fell between the cracks for me. I'd be fine with merging it, once the small typo in the commit message is fixed:

Print warnings to STDERR to avoid polluting STDOUT

@dmatysiak dmatysiak changed the title Print warnings to stderr to avoid polluting stderr Print warnings to STDERR to avoid polluting STDOUT Mar 22, 2022
@atomist
Copy link

atomist bot commented Mar 22, 2022

Commit messages of this repository should follow the seven rules of a great Git commit message, as mentioned in the project's contributing guidelines. It looks like there's a few issues with the commit messages in this pull request:

  • The commit message subject is over 50 characters.

@atomist
Copy link

atomist bot commented Mar 22, 2022

Commit messages of this repository should follow the seven rules of a great Git commit message, as mentioned in the project's contributing guidelines. It looks like there's a few issues with the commit messages in this pull request:

  • The commit message subject is over 50 characters.

@pedrorgirardi
Copy link

Hi @weavejester . Any update on this PR?

I was also bitten by environ writing to stdout 😅

@weavejester
Copy link
Owner

Hi @weavejester . Any update on this PR?

As I said in my previous comment, I'm happy to merge once the typo in the commit message is corrected. This PR also now has 60 commits for some reason, when it should have 1.

@pedrorgirardi
Copy link

pedrorgirardi commented Jun 10, 2022

Thanks for the super quick response @weavejester !

Yeah, I noticed all the commits; I don't know what happened.

I'm not the author of the PR, so maybe we can ping @dmatysiak ?

@dmatysiak
Copy link
Author

See #97. Didn't want to fiddle with the mess I accidentally made with the commit history in this branch.

@dmatysiak dmatysiak closed this Jun 10, 2022
@pedrorgirardi
Copy link

See #97. Didn't want to fiddle with the mess I accidentally made with the commit history in this branch.

Nice! :) Thanks 🙏

@dmatysiak dmatysiak deleted the feature/printerr branch December 31, 2022 11:34
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.