go-grpc-middleware
go-grpc-middleware copied to clipboard
fix zap logger example and add tests
- [ ] I added CHANGELOG entry for this change.
- [x] Change is not relevant to the end user.
Changes
- Fix zap logging example
- Add a test for zap example
Before:

After:

Verification
I added test for testing/verification
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
I found discussion (#567) about adding tests for logging examples and I add it. @bwplotka cc
Thanks for this and sorry for lag. Example was fixed, but I would love those tests! Do you mind rebasing?
yep
rebased, and returned examples function, maybe it's helpful to see how used it.
ping @bwplotka @johanbrandhorst
I returned interceptors to test files
i work on it