let's get rid of deprecations straight away

This commit is contained in:
Jakob Ketterl 2019-05-10 22:17:53 +02:00
parent b91d24f8d2
commit abb5b65217
2 changed files with 4 additions and 4 deletions

View File

@ -187,7 +187,7 @@ class WebSocketMessageHandler(object):
return
if not self.handshake:
logger.warn("not answering client request since handshake is not complete")
logger.warning("not answering client request since handshake is not complete")
return
try:
@ -213,10 +213,10 @@ class WebSocketMessageHandler(object):
self.client.setSdr(profile[0])
self.client.sdr.activateProfile(profile[1])
else:
logger.warn("received message without type: {0}".format(message))
logger.warning("received message without type: {0}".format(message))
except json.JSONDecodeError:
logger.warn("message is not json: {0}".format(message))
logger.warning("message is not json: {0}".format(message))
def handleBinaryMessage(self, conn, data):
logger.error("unsupported binary message, discarding")

View File

@ -70,7 +70,7 @@ class WebSocketConnection(object):
open = False
self.messageHandler.handleClose(self)
else:
logger.warn("unsupported opcode: {0}".format(opcode))
logger.warning("unsupported opcode: {0}".format(opcode))
class WebSocketException(Exception):
pass