Skip to content

Commit

Permalink
_LoggingPipe: add log in __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
ebonnal committed Aug 1, 2023
1 parent 80eaddb commit 49aa4b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kioss/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def __init__(self, iterator: Iterator[T], what: str) -> None:
self.last_log_at_yields_count = 0
self.start_time = time.time()
self._is_exhausted = False
logging.info("Iteration over '%s' will be logged.", self.what)

def _log(self) -> None:
logging.info(
Expand Down

0 comments on commit 49aa4b5

Please sign in to comment.