From cbccdc9dd33207a4bd05b0f42124c42df1e66f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sluka?= Date: Wed, 23 Apr 2025 16:59:24 +0200 Subject: [PATCH] Replace print() with logger.warning --- OMPython/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMPython/__init__.py b/OMPython/__init__.py index 7aa07fa13..85ce29784 100644 --- a/OMPython/__init__.py +++ b/OMPython/__init__.py @@ -393,7 +393,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()