Skip to content

Commit

Permalink
Add logging to link cancellation and update version
Browse files Browse the repository at this point in the history
Enhanced link cancellation with additional logging for better traceability. Updated project version to 0.5.8.4 across all relevant files.
  • Loading branch information
pnearing committed Sep 9, 2024
1 parent 7f3f9df commit 2787b67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "SignalCliAPi"
version = "0.5.8.3"
version = "0.5.8.4"
authors = [
{ name="Peter Nearing", email="[email protected]" }
]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = SignalCliApi
version = 0.5.8.3
version = 0.5.8.4
author = Peter Nearing
author_email = [email protected]
description = A python interface to the signal-cli found at https://github.com/AsamK/signal-cli
Expand Down
2 changes: 1 addition & 1 deletion src/signal_cli_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
File: __init__.py
Description: A python3 interface to signal-cli.
"""
__version__: str = '0.5.8.3'
__version__: str = '0.5.8.4'
__author__: str = 'Peter Nearing'
__email__: str = '[email protected]'

Expand Down
3 changes: 3 additions & 0 deletions src/signal_cli_api/signal_link_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,10 @@ def cancel(self) -> None:
Cancel a currently running link.
:return: None.
"""
logger: logging.Logger = logging.getLogger(__name__ + '.' + self.cancel.__name__)
logger.info("Canceling link.")
self._is_cancelled = True
logger.debug("set _is_canceled.")
__socket_close__(self._link_socket)
self.__call_callback__(LinkAccountCallbackStates.LINK_CANCELED, None)

Expand Down

0 comments on commit 2787b67

Please sign in to comment.