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

Add logging for query err before redacting #1605

Merged
merged 2 commits into from
Sep 6, 2023
Merged

Add logging for query err before redacting #1605

merged 2 commits into from
Sep 6, 2023

Conversation

pinosu
Copy link
Contributor

@pinosu pinosu commented Sep 5, 2023

Closes #1593

@pinosu pinosu requested a review from alpe as a code owner September 5, 2023 15:05
@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #1605 (321304b) into main (1149653) will increase coverage by 0.00%.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1605   +/-   ##
=======================================
  Coverage   58.22%   58.23%           
=======================================
  Files          64       64           
  Lines        8642     8643    +1     
=======================================
+ Hits         5032     5033    +1     
  Misses       3197     3197           
  Partials      413      413           
Files Changed Coverage Δ
x/wasm/keeper/query_plugins.go 83.82% <100.00%> (+0.03%) ⬆️

Copy link
Contributor

@alpe alpe left a comment

Choose a reason for hiding this comment

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

Looks great. Just personal preference on debug level

@@ -71,6 +71,7 @@ func (q QueryHandler) Query(request wasmvmtypes.QueryRequest, gasLimit uint64) (
}

// Issue #759 - we don't return error string for worries of non-determinism
moduleLogger(q.Ctx).Info("Redacting submessage error", "cause", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

This solves the issue but let's use debug level to not confuse with extra output

@pinosu pinosu merged commit f1835a1 into main Sep 6, 2023
8 checks passed
@pinosu pinosu deleted the 1593-log_query_err branch September 6, 2023 09:42
alpe pushed a commit that referenced this pull request Sep 6, 2023
* Add logging for query err before redacting

* Fix comments
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.

Log query error before redacting
2 participants