@@ -98,7 +98,7 @@ def consume(self, message):
98
98
message (dict): The JSON RPC message sent by the client
99
99
"""
100
100
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 )
102
102
return
103
103
104
104
if 'id' not in message :
@@ -135,7 +135,7 @@ def _handle_notification(self, method, params):
135
135
try :
136
136
handler = self ._dispatcher [method ]
137
137
except KeyError :
138
- log .warn ("Ignoring notification for unknown method %s" , method )
138
+ log .warning ("Ignoring notification for unknown method %s" , method )
139
139
return
140
140
141
141
try :
@@ -165,7 +165,7 @@ def _handle_cancel_notification(self, msg_id):
165
165
request_future = self ._client_request_futures .pop (msg_id , None )
166
166
167
167
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 )
169
169
return
170
170
171
171
# Will only work if the request hasn't started executing
@@ -230,7 +230,7 @@ def _handle_response(self, msg_id, result=None, error=None):
230
230
request_future = self ._server_request_futures .pop (msg_id , None )
231
231
232
232
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 )
234
234
return
235
235
236
236
if error is not None :
0 commit comments