Skip to content

Commit

Permalink
[py]: debug log the service executable and pid
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Oct 9, 2022
1 parent b8aa903 commit 9a9fd49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/selenium/webdriver/common/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def start(self) -> None:
try:
cmd = [self.path]
cmd.extend(self.command_line_args())
self.process = subprocess.Popen(
child_process = self.process = subprocess.Popen(
cmd,
env=self.env,
close_fds=system() != "Windows",
Expand All @@ -99,6 +99,7 @@ def start(self) -> None:
stdin=PIPE,
creationflags=self.creation_flags,
)
log.debug(f"Started executable: `{self.process}` in a child process with pid: {child_process.pid}")
except TypeError:
raise
except OSError as err:
Expand Down

0 comments on commit 9a9fd49

Please sign in to comment.