-
Notifications
You must be signed in to change notification settings - Fork 312
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
Send 'Staring component...' output to stderr #1298
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1298 +/- ##
===========================================
+ Coverage 26.18% 53.66% +27.47%
===========================================
Files 263 289 +26
Lines 18917 20784 +1867
===========================================
+ Hits 4954 11153 +6199
+ Misses 13195 7833 -5362
- Partials 768 1798 +1030
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/lgtm |
/lgtm cancel |
Could you please fix this too? When the cluster/dm is not the newest, it will print this to stdout: Which will cause problem too. |
…up with component output Some components output JSON or YAML. When the "Starting component..." message is mixed with this the output needs to be cleaned up before it can be used. Examples of this are: ``` tiup ctl:v5.0.0 tidb --host 192.168.122.50 schema in mysql | jq ``` ``` tiup cluster template > template.yaml ``` This commit changes the output o the "Starting component..." to be send to stderr instead.
28c54c4
to
ae43251
Compare
@lucklove that should be fixed as well now |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: ae43251
|
What is changed and how it works?
Some components output JSON or YAML. When the "Starting component..." message is mixed with this
the output needs to be cleaned up before it can be used.
Examples of this are:
This commit changes the output o the "Starting component..." to be send to stderr instead.
Check List
Tests
Run the command with
> /dev/null
, you should now only see theStarting component...
line.Related changes
Release notes: