Skip to content

Commit

Permalink
6.3.2 Fixes #67: Logging improvements, take 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Mar 2, 2024
1 parent 26dbf2d commit 183afeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pytak/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
:source: <https://github.com/snstac/pytak>
"""

__version__ = "6.3.1"
__version__ = "6.3.2"


from .constants import ( # NOQA
Expand Down
6 changes: 3 additions & 3 deletions pytak/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def handle_data(self, data: bytes) -> None:

async def run(self, number_of_iterations=-1):
"""Run this Thread, reads Data from Queue & passes data to next Handler."""
self._logger.info("Run: %s", self.__class__)
self._logger.info("Run: %s", self.__class__.__name__)

# We're instantiating the while loop this way, and using get_nowait(),
# to allow unit testing of at least one call of this loop.
Expand Down Expand Up @@ -233,7 +233,7 @@ async def readcot(self):

async def run(self, number_of_iterations=-1) -> None:
"""Run this worker."""
self._logger.info("Run: %s", self.__class__)
self._logger.info("Run: %s", self.__class__.__name__)

while 1:
await asyncio.sleep(self.min_period)
Expand Down Expand Up @@ -400,7 +400,7 @@ def run_tasks(self, tasks=None):

async def run(self):
"""Run this Thread and its associated coroutine tasks."""
self._logger.info("Run: %s", self.__class__)
self._logger.info("Run: %s", self.__class__.__name__)

await self.hello_event()
self.run_tasks()
Expand Down

0 comments on commit 183afeb

Please sign in to comment.