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
Unify where ProgressBar and Logging are written #1130
Comments
The problem now is two-fold. The default in the sentry-cli/src/utils/progress.rs Lines 93 to 101 in 4fde328
ProgressBar::new_spinner and ProgressBar::new in some places without redirecting it to a single descriptor, making it not consistent. It's all over the place now.
I'll let myself change the title of this issue to be more generic. Thanks for reporting. |
(progressbar and all logs are now going to |
Created an issue to do that: getsentry/sentry-unity#674 |
Environment
We're using sentry-cli to upload symbols as part of the build process in the sentry-unity SDK. I've noticed that when SENTRY_LOG_LEVEL env var is configured, some logs are written to stderr, even though they're just INFO level as an example. From a quick look, I assume this line is responsible:
sentry-cli/src/utils/logging.rs
Lines 75 to 79 in 4fde328
This is the place where we got it captured in stderr. Note: currently the log level environment var is not set there in the PR to avoid showing "WARNING: INFO" kind of logs to the user.
Steps to Reproduce
Expected Result
I'd expect non-error logs to be printed to
stdout
Actual Result
INFO logs end up in stderr
edit: added missing link to the code where this is hit
The text was updated successfully, but these errors were encountered: