Aymeric Augustin
Aymeric Augustin
Now available in version 13.1, which I just released.
Follow-up task: update documentation to take advantage of this new API.
Documentation was updated, notably in 61a6a7a99534e2522773476fc72ca615f5a6ea97 and 667e418ae474235c2bc26024df11c8e1d573d27a.
This would also be more elegant than f9cea9cca568dc92704de3744639eb4248278a8f.
Implementing this may hit #1596.
Honestly it's not important and I'm not even sure the complexity is worth doing it at all. I made a note in case one day I want to relax by...
This race condition affects the opening handshake only. Your tests are after the opening handshake so they don't reproduce it. Also, it's a race condition, meaning that it doesn't happen...
Does of of these option work for you? https://websockets.readthedocs.io/en/stable/topics/logging.html#disable-logging
Probably you want: `logging.getLogger("websockets").setLevel(logging.CRITICAL)`
Closing the issue for now — but feel free to comment if my answers above don't really solve your problem.