diff --git a/OMPython/__init__.py b/OMPython/__init__.py index c5ad682e8..06948639f 100644 --- a/OMPython/__init__.py +++ b/OMPython/__init__.py @@ -392,7 +392,7 @@ def __del__(self): self._omc_process.wait(timeout=2.0) except Exception: if self._omc_process: - print("OMC did not exit after being sent the quit() command; killing the process with pid={self._omc_process.pid}") + logger.warning("OMC did not exit after being sent the quit() command; killing the process with pid=%s", self._omc_process.pid) self._omc_process.kill() self._omc_process.wait()