Skip to content

Commit

Permalink
python: Added number of tasks to started/ended log line.
Browse files Browse the repository at this point in the history
  • Loading branch information
levy committed Nov 7, 2024
1 parent cb65651 commit 75f4a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/inet/common/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def run(self, **kwargs):
Returns (:py:class:`MultipleTaskResults`):
The task results.
"""
_logger.info(f"Running multiple {self.get_description()} started")
_logger.info(f"Running {len(self.tasks)} {self.get_description()} started")
if self.cancel:
task_results = list(map(lambda task: task.task_result_class(task=task, result="CANCEL", reason="Cancel by user"), self.tasks))
multiple_task_results = self.multiple_task_results_class(multiple_tasks=self, results=task_results)
Expand All @@ -541,7 +541,7 @@ def run(self, **kwargs):
except KeyboardInterrupt:
task_results = list(map(lambda task: task.task_result_class(task=task, result="CANCEL", reason="Cancel by user"), self.tasks))
multiple_task_results = self.multiple_task_results_class(multiple_tasks=self, results=task_results)
_logger.info(f"Running multiple {self.get_description()} ended")
_logger.info(f"Running {len(self.tasks)} {self.get_description()} ended")
return multiple_task_results

def run_protected(self, **kwargs):
Expand Down

0 comments on commit 75f4a0f

Please sign in to comment.