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

test: reduce end2end log spam #546

Merged
merged 1 commit into from
Feb 16, 2016
Merged

test: reduce end2end log spam #546

merged 1 commit into from
Feb 16, 2016

Conversation

bradfitz
Copy link
Contributor

Filter expected log output by default, unless a flag is provided, or a
test fails.

This makes it possible to see unexpected things. Having noisy tests
makes it too easy to miss actual problems.

@LetsUseGerrit
Copy link

Gerrit code review: https://go-review.googlesource.com/19451 (at git rev 4e9bdfe)


var testLogOutput = &lockingWriter{w: os.Stderr}

func awaitLogOutput(t *testing.T, maxWait time.Duration, phrase string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

t is unused

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yeah, I changed my mind about something earlier. Removed.

I have grander plans for all this logging stuff, but this is a baby step.

@tamird
Copy link
Contributor

tamird commented Feb 11, 2016

LGTM.

Leveled logging would be pretty helpful here.

@LetsUseGerrit
Copy link

Gerrit code review: https://go-review.googlesource.com/19451 (at git rev fa64708)

@LetsUseGerrit
Copy link

Gerrit code review: https://go-review.googlesource.com/19451 (at git rev 35e8ba4)

@bradfitz
Copy link
Contributor Author

Rebased. No new changes.

@LetsUseGerrit
Copy link

Gerrit code review: https://go-review.googlesource.com/19451 (at git rev f8861d0)

@LetsUseGerrit
Copy link

Gerrit code review: https://go-review.googlesource.com/19451 (at git rev 303da9d)

Filter expected log output by default, unless a flag is provided, or a
test fails.

This makes it possible to see unexpected things. Having noisy tests
makes it too easy to miss actual problems.
@LetsUseGerrit
Copy link

Gerrit code review: https://go-review.googlesource.com/19451 (at git rev ffa8131)

iamqizhao added a commit that referenced this pull request Feb 16, 2016
test: reduce end2end log spam
@iamqizhao iamqizhao merged commit 01de3de into grpc:master Feb 16, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
dfawley pushed a commit to dfawley/grpc-go that referenced this pull request Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants