Skip to content

Commit a787a74

Browse files
committed
Fixed log message position
1 parent ed6250f commit a787a74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

simvue/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ def kill_process(
346346
for child in parent.children(recursive=True):
347347
child.wait()
348348

349-
logger.debug(f"Terminating process {process.pid}: {process.args}")
350349
if not kill_children_only:
350+
logger.debug(f"Terminating process {process.pid}: {process.args}")
351351
process.kill()
352352
process.wait()
353353

simvue/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ def processes(self) -> list[psutil.Process]:
224224

225225
process_list += [self._parent_process]
226226

227+
# Attach child processes relating to the process set by set_pid
227228
with contextlib.suppress(psutil.NoSuchProcess, psutil.ZombieProcess):
228229
for child in self._parent_process.children(recursive=True):
229230
if child not in process_list:

0 commit comments

Comments
 (0)