-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding logging to tchannel handler error cases
Zap logging was added to understand when handler calls failed, when SendSystemError failed, and when responseWriter failed to close. To test these changes, I added a responseWriter interface factory to the struct of the handler so I could control reponseWriter during testing. A recorder interface was also added to test failure cases in responseRecorder.
- Loading branch information
Showing
5 changed files
with
285 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.