Skip to content

Commit

Permalink
Make some acknowledgment logs debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
Elena Shylko committed Apr 12, 2024
1 parent c7f8d73 commit 95985ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gmqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"Mikhail Turchunovich",
"Elena Shylko"
]
__version__ = "0.6.14"
__version__ = "0.6.15"


__all__ = [
Expand Down
6 changes: 3 additions & 3 deletions gmqtt/mqtt/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def _handle_puback_packet(self, cmd, packet):

# TODO: For MQTT 5.0 parse reason code and properties

self._logger.info('[RECEIVED PUBACK FOR] %s', mid)
self._logger.debug('[RECEIVED PUBACK FOR] %s', mid)

self._id_generator.free_id(mid)
self._remove_message_from_query(mid)
Expand All @@ -440,14 +440,14 @@ def _handle_pubcomp_packet(self, cmd, packet):

def _handle_pubrec_packet(self, cmd, packet):
(mid,) = struct.unpack("!H", packet[:2])
self._logger.info('[RECEIVED PUBREC FOR] %s', mid)
self._logger.debug('[RECEIVED PUBREC FOR] %s', mid)
self._id_generator.free_id(mid)
self._remove_message_from_query(mid)
self._send_pubrel(mid, 0)

def _handle_pubrel_packet(self, cmd, packet):
(mid, ) = struct.unpack("!H", packet[:2])
self._logger.info('[RECEIVED PUBREL FOR] %s', mid)
self._logger.debug('[RECEIVED PUBREL FOR] %s', mid)
self._send_pubcomp(mid, 0)

self._id_generator.free_id(mid)

0 comments on commit 95985ea

Please sign in to comment.