-
Notifications
You must be signed in to change notification settings - Fork 282
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
ticdc/server: output the cdc server cmd error to stderr #3520
Merged
ti-chi-bot
merged 24 commits into
pingcap:master
from
zhaoxinyu:fix_error_capture_in_cdclog
Nov 29, 2021
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ac72564
output the cdc server cmd error to stderr, so as to convenietly do tr…
zhaoxinyu 6e55e5c
address comment and upgrade cobra to a latest release version
zhaoxinyu ccff238
Merge branch 'master' into fix_error_capture_in_cdclog
zhaoxinyu bd1acd2
Merge branch 'master' into fix_error_capture_in_cdclog
zhaoxinyu f367857
update go.sum to solve the compile problem
zhaoxinyu cc1ae36
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot c939927
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 135fe8a
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 606628e
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot d94e36c
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot a702695
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot b9d0f45
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 54db259
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 0e9c4fe
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 015c28a
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot a21919a
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 5419eb0
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 5ea9257
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot fc91adf
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 4302548
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 6544708
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot 95e15bb
handle dmctl help flag correctly after upgrading cobra
zhaoxinyu f32d10b
Merge branch 'master' into fix_error_capture_in_cdclog
ti-chi-bot c67ff9d
remove the default completion command generated by cobra
zhaoxinyu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you redrict err output to stderr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, use
cmd.PrintErr
to print error message to stderr is more natural. And maybe we should usecmd.PrintErrln
here to print error with new line. But after testing withcmd.PrintErrln
, it does not work as expected.cmd.PrintErrln
prints error message to stdout, see cobra issue 1100.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can replace v1.0.0 cobra with v1.2.1 in go.mod.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, let's upgrade cobra.