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

Print exception stacktrace from command run into stderr #14522

Merged

Conversation

BobIsOnFire
Copy link
Contributor

@BobIsOnFire BobIsOnFire commented Aug 18, 2023

Changelog: Bugfix: Print exception stacktrace (when -vtrace is set) into stderr instead of stdout
Docs: Omit

Hi! A ConanException from some command like conan <cmd> -v trace -f json > output.json redirected my error into JSON file and didn't write anything into the console. I believe such output should be always written into stderr.

  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Yes, you are right, this better go to stderr. Thanks for this fix @BobIsOnFire!

@memsharded memsharded added this to the 2.0.10 milestone Aug 18, 2023
@memsharded memsharded merged commit 6f6481d into conan-io:release/2.0 Aug 18, 2023
@BobIsOnFire BobIsOnFire deleted the bugfix/stacktrace-in-stderr branch August 18, 2023 17:10
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