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

Adds some goc-december logging #577

Closed
wants to merge 19 commits into from

Conversation

danwt
Copy link
Contributor

@danwt danwt commented Dec 9, 2022

This is an MVP for improved logging intended for goc-december. Further polish will be needed before adapting the contents of this PR for main/

Partially tackles

The difftest change let me test out the log statements by using the diff test execution paths but with the actual testing part disabled.

@danwt danwt changed the title Add some logging Adds some goc-december logging Dec 9, 2022
@danwt danwt marked this pull request as ready for review December 9, 2022 15:47
// TODO: refactor this out test (-v) verbose flag needed to see output!
func ProviderAppIniterWithLog() (ibctesting.TestingApp, map[string]json.RawMessage) {
l := log.TestingLogger()
l = log.NewFilter(l,
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this line do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The log has a feature where you add filter k/v pairs, and only lines includes those pairs are shown. By doing this, and specifying module", "x/ibc-provider it filters out all the sdk logging (during tests only!)

@mpoke mpoke marked this pull request as draft December 20, 2022 16:46
@MSalopek MSalopek mentioned this pull request Dec 23, 2022
1 task
@mpoke mpoke closed this Dec 23, 2022
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.

3 participants