From a1c8655463b879ccf93bf41bcd3aa07b40c9fadf Mon Sep 17 00:00:00 2001 From: Nicolas Jouanin Date: Thu, 10 Sep 2015 21:34:45 +0200 Subject: [PATCH] Change use of deprecated method --- hbmqtt/mqtt/protocol/handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbmqtt/mqtt/protocol/handler.py b/hbmqtt/mqtt/protocol/handler.py index 5467afd..b431b49 100644 --- a/hbmqtt/mqtt/protocol/handler.py +++ b/hbmqtt/mqtt/protocol/handler.py @@ -143,7 +143,7 @@ class ProtocolHandler: # PUBACK waiter already exists for this packet ID warning = "Can't add PUBACK waiter, a waiter already exists for message Id '%s'" \ % publish_message.packet_id - self.logger.warn(warning) + self.logger.warning(warning) raise HBMQTTException(warning) # Wait for puback waiter = asyncio.Future(loop=self._loop) @@ -159,7 +159,7 @@ class ProtocolHandler: # PUBREC waiter already exists for this packet ID message = "Can't add PUBREC waiter, a waiter already exists for message Id '%s'" \ % publish_message.packet_id - self.logger.warn(message) + self.logger.warning(message) raise HBMQTTException(message) # Wait for PUBREC waiter = asyncio.Future(loop=self._loop)