-
Notifications
You must be signed in to change notification settings - Fork 493
Complete the implementation of moving panics to the Error log level #353
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
Conversation
0f18701 to
7769a89
Compare
|
|
||
| func TestClient_logger(t *testing.T) { | ||
| t.Run("net/rpc", func(t *testing.T) { testClient_logger(t, "netrpc") }) | ||
| t.Run("netrpc", func(t *testing.T) { testClient_logger(t, "netrpc") }) |
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.
This change is solely for test ergonomics, the extra / made it behave as a sub-sub-test.
|
@hashicorp/team-ip-compliance, waiting on review please |
robmonte
left a comment
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.
Looks great, just one question!
Don't shadow the builtin `panic` symbol. Remove the redundant `false` assignments. Flatten the if block since we are already using a switch.
2b902c6 to
6a167cc
Compare
It wasn't clear which versions of the protobuf tooling needed to be used to generate the test code, and updating them required some additional changes. Since the `buf` tool was adopted to generate the example code, use the same tool to make generating the test code easier too.
Continuing from #292, we update the implementation slightly, but maintain the same behavior:
panicsymbol.Most clients won't notice the change, but some like Terraform must capture plugin stack traces in order to help users identify the source of the error. Changing the stream is a breaking change for Terraform, so updating to a new minor version will need to be coordinated with downstream consumers.