Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 9d11301

Browse files
committed
Suppress logging for H2_NPN_PROTOCOLS
1 parent a0d8050 commit 9d11301

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

hyper/http20/tls.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
66
Contains the TLS/SSL logic for use in hyper.
77
"""
8-
import logging
98
import os.path as path
109

1110
from ..compat import ignore_missing, ssl
1211

13-
log = logging.getLogger(__name__)
1412

1513
NPN_PROTOCOL = 'h2-16'
1614
H2_NPN_PROTOCOLS = [NPN_PROTOCOL, 'h2-15', 'h2-14'] # All h2s we support.
@@ -43,9 +41,7 @@ def wrap_socket(sock, server_hostname):
4341
ssl.match_hostname(ssl_sock.getpeercert(), server_hostname)
4442

4543
with ignore_missing():
46-
selected_npn = ssl_sock.selected_npn_protocol()
47-
log.debug('Selected NPN: %s' % selected_npn)
48-
assert selected_npn in H2_NPN_PROTOCOLS
44+
assert ssl_sock.selected_npn_protocol() in H2_NPN_PROTOCOLS
4945

5046
return ssl_sock
5147

0 commit comments

Comments
 (0)