Skip to content

Commit 9a9fd49

Browse files
committed
[py]: debug log the service executable and pid
1 parent b8aa903 commit 9a9fd49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/selenium/webdriver/common/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def start(self) -> None:
9090
try:
9191
cmd = [self.path]
9292
cmd.extend(self.command_line_args())
93-
self.process = subprocess.Popen(
93+
child_process = self.process = subprocess.Popen(
9494
cmd,
9595
env=self.env,
9696
close_fds=system() != "Windows",
@@ -99,6 +99,7 @@ def start(self) -> None:
9999
stdin=PIPE,
100100
creationflags=self.creation_flags,
101101
)
102+
log.debug(f"Started executable: `{self.process}` in a child process with pid: {child_process.pid}")
102103
except TypeError:
103104
raise
104105
except OSError as err:

0 commit comments

Comments
 (0)