-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
feat!: support debug trace QueryResult (backport #9576) #11148
feat!: support debug trace QueryResult (backport #9576) #11148
Conversation
types/errors/abci.go
Outdated
@@ -95,8 +95,8 @@ func ResponseDeliverTxWithEvents(err error, gw, gu uint64, events []abci.Event, | |||
|
|||
// QueryResult returns a ResponseQuery from an error. It will try to parse ABCI | |||
// info from the error. | |||
func QueryResult(err error) abci.ResponseQuery { | |||
space, code, log := ABCIInfo(err, false) | |||
func QueryResult(err error, debug bool) abci.ResponseQuery { |
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.
We cannot backport this function, because it's API-breaking.
What we can do is create a new function QueryResultWithDebug
, does that work for you @yihuang ?
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.
ACK -- create a QueryResultWithDebug
👍
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.
thanks for the suggestions, it's changed now.
9681d0e
to
7345f7e
Compare
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.
LGTM
Update types/errors/abci.go Co-authored-by: Amaury <[email protected]>
6a1fdf9
to
2cdb638
Compare
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.
lgtm
shall we merge this to |
Update types/errors/abci.go Co-authored-by: Amaury <[email protected]> Co-authored-by: Amaury <[email protected]>
Update types/errors/abci.go Co-authored-by: Amaury <[email protected]> Co-authored-by: Amaury <[email protected]>
Update types/errors/abci.go Co-authored-by: Amaury <[email protected]> Co-authored-by: Amaury <[email protected]>
Update types/errors/abci.go Co-authored-by: Amaury <[email protected]> Co-authored-by: Amaury <[email protected]>
Co-authored-by: yihuang <[email protected]>
Co-authored-by: yihuang <[email protected]> (cherry picked from commit 4b35574)
Co-authored-by: yihuang <[email protected]> (cherry picked from commit 4b35574) Co-authored-by: Roman <[email protected]>
Update types/errors/abci.go Co-authored-by: Amaury <[email protected]> Co-authored-by: Amaury <[email protected]>
Description
backport #9576
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change