Skip to content

Commit b26bd43

Browse files
committed
[OMCSessionWSL] fix another exception message & add log filename
1 parent 981f69a commit b26bd43

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

OMPython/OMCSession.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,8 +1639,9 @@ def _omc_port_get(self) -> str:
16391639
if port is not None:
16401640
break
16411641
else:
1642-
logger.error(f"Docker did not start. Log-file says:\n{self.get_log()}")
1643-
raise OMCSessionException(f"WSL based OMC Server did not start (timeout={self._timeout}).")
1642+
logger.error(f"WSL based OMC server did not start. Log-file says:\n{self.get_log()}")
1643+
raise OMCSessionException(f"WSL based OMC Server did not start (timeout={self._timeout}, "
1644+
f"logfile={repr(self._omc_logfile)}).")
16441645

16451646
logger.info(f"WSL based OMC Server is up and running at ZMQ port {port} "
16461647
f"pid={self._omc_process.pid if isinstance(self._omc_process, subprocess.Popen) else '?'}")

0 commit comments

Comments
 (0)