diff --git a/python/inet/common/task.py b/python/inet/common/task.py index cbc230e472e..1fd8fe125e9 100644 --- a/python/inet/common/task.py +++ b/python/inet/common/task.py @@ -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) @@ -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):