From 046f5836f712fee62580d7c80f697da00affc4c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Wed, 23 Jun 2021 15:59:15 +0200 Subject: [PATCH] Fixed logging --- client-py3/full/src/uds/tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-py3/full/src/uds/tools.py b/client-py3/full/src/uds/tools.py index 345733f0..f33fc8ce 100644 --- a/client-py3/full/src/uds/tools.py +++ b/client-py3/full/src/uds/tools.py @@ -176,11 +176,12 @@ def waitForTasks() -> None: elif hasattr(task, 'wait'): task.wait() # If wait for spanwed process (look for process with task pid) and we can look for them... + logger.debug('Psutil: %s, waitForSubp: %s, hasattr: %s', psutil, waitForSubp, hasattr(task, 'pid')) if psutil and waitForSubp and hasattr(task, 'pid'): subProcesses = list(filter( lambda x: x.ppid() == task.pid, psutil.process_iter(attrs=('ppid',)) )) - logger.debug('Waiting for subprocesses... %s', task.pid, subProcesses) + logger.debug('Waiting for subprocesses... %s, %s', task.pid, subProcesses) for i in subProcesses: logger.debug('Found %s', i) i.wait()