Skip to content

Commit

Permalink
Documentation and logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed May 8, 2019
1 parent 6059379 commit 9329627
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mqttools/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,10 @@ async def start(self, resume_session=False):
>>> await client.start()
Trying to resume a session.
>>> try:
... await client.start()
... await client.start(resume_session=True)
... print('Session resumed.')
... except SessionResumeError:
... print('Session not resumed. Subscribe to topics.')
Expand Down Expand Up @@ -1045,7 +1047,7 @@ async def on_publish(self, flags, payload):
topic = self._topic_aliases[alias]
except KeyError:
LOGGER.debug(
'Invalid topic alias %d received from the broker.',
'Unknown topic alias %d received from the broker.',
alias)
return
elif 0 < alias <= self._topic_alias_maximum:
Expand Down

0 comments on commit 9329627

Please sign in to comment.