@@ -98,7 +98,7 @@ def consume(self, message):
9898 message (dict): The JSON RPC message sent by the client
9999 """
100100 if 'jsonrpc' not in message or message ['jsonrpc' ] != JSONRPC_VERSION :
101- log .warn ("Unknown message type %s" , message )
101+ log .warning ("Unknown message type %s" , message )
102102 return
103103
104104 if 'id' not in message :
@@ -135,7 +135,7 @@ def _handle_notification(self, method, params):
135135 try :
136136 handler = self ._dispatcher [method ]
137137 except KeyError :
138- log .warn ("Ignoring notification for unknown method %s" , method )
138+ log .warning ("Ignoring notification for unknown method %s" , method )
139139 return
140140
141141 try :
@@ -165,7 +165,7 @@ def _handle_cancel_notification(self, msg_id):
165165 request_future = self ._client_request_futures .pop (msg_id , None )
166166
167167 if not request_future :
168- log .warn ("Received cancel notification for unknown message id %s" , msg_id )
168+ log .warning ("Received cancel notification for unknown message id %s" , msg_id )
169169 return
170170
171171 # Will only work if the request hasn't started executing
@@ -230,7 +230,7 @@ def _handle_response(self, msg_id, result=None, error=None):
230230 request_future = self ._server_request_futures .pop (msg_id , None )
231231
232232 if not request_future :
233- log .warn ("Received response to unknown message id %s" , msg_id )
233+ log .warning ("Received response to unknown message id %s" , msg_id )
234234 return
235235
236236 if error is not None :
0 commit comments