Skip to content

Commit b6ec039

Browse files
committed
add log message on timeout change
1 parent 39139e0 commit b6ec039

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,8 @@ def set_timeout(self, timeout: Optional[float] = None) -> float:
958958
retval = self._timeout
959959
if timeout is not None:
960960
if timeout <= 0.0:
961-
raise OMCSessionException(f"Invalid timeout value: {timeout}!")
961+
raise OMCSessionException(f"Invalid timeout value: {timeout}s!")
962+
logger.info(f"Update timeout for {self.__class__.__name__}: {retval}s => {timeout}s")
962963
self._timeout = timeout
963964
return retval
964965

0 commit comments

Comments
 (0)