@@ -240,7 +240,7 @@ def __init__(self, socket, addr, server):
240240 try :
241241 socket = ssl .wrap_socket (socket , server_side = True , certfile = server .cert , keyfile = server .key )
242242 except : # Not sure which exception it throws if the key/cert isn't found
243- logger .warn ("SSL not available (are the paths {} and {} correct for the key and cert?)" .format (server .key , server .cert ))
243+ logger .warning ("SSL not available (are the paths {} and {} correct for the key and cert?)" .format (server .key , server .cert ))
244244 StreamRequestHandler .__init__ (self , socket , addr , server )
245245
246246 def setup (self ):
@@ -281,14 +281,14 @@ def read_next_message(self):
281281 self .keep_alive = 0
282282 return
283283 if not masked :
284- logger .warn ("Client must always be masked." )
284+ logger .warning ("Client must always be masked." )
285285 self .keep_alive = 0
286286 return
287287 if opcode == OPCODE_CONTINUATION :
288- logger .warn ("Continuation frames are not supported." )
288+ logger .warning ("Continuation frames are not supported." )
289289 return
290290 elif opcode == OPCODE_BINARY :
291- logger .warn ("Binary frames are not supported." )
291+ logger .warning ("Binary frames are not supported." )
292292 return
293293 elif opcode == OPCODE_TEXT :
294294 opcode_handler = self .server ._message_received_
@@ -297,7 +297,7 @@ def read_next_message(self):
297297 elif opcode == OPCODE_PONG :
298298 opcode_handler = self .server ._pong_received_
299299 else :
300- logger .warn ("Unknown opcode %#x." % opcode )
300+ logger .warning ("Unknown opcode %#x." % opcode )
301301 self .keep_alive = 0
302302 return
303303
0 commit comments