forked from encode/uvicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing trace log for websocket protocols (encode#1083)
* Add missing trace log for websocket protocols Formerly we only have trace log for http protocol. It seems we missed to add trace log for websocket protocols. * Add trace logging tests for protocols Protocols emit trace logs on `connection_made()` and `connection_lost`. Add missing tests for these logs. * Specify connection type in protocol trace log The default transport protocol is http protocol. A ws request is firstly handled using http protocol, then handled using ws protocol by switching the protocol. To discriminate the trace log emitter, we need to specify the protocol type in the log message.
- Loading branch information
1 parent
6b46b42
commit 0cf9cea
Showing
5 changed files
with
84 additions
and
4 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
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
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