Skip to content

Commit 1471e6b

Browse files
ondras12345adeas31
andauthored
Replace print() with logger.warning (#262)
Co-authored-by: Adeel Asghar <adeel.asghar@liu.se>
1 parent 8230f67 commit 1471e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMPython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def __del__(self):
392392
self._omc_process.wait(timeout=2.0)
393393
except Exception:
394394
if self._omc_process:
395-
print("OMC did not exit after being sent the quit() command; killing the process with pid={self._omc_process.pid}")
395+
logger.warning("OMC did not exit after being sent the quit() command; killing the process with pid=%s", self._omc_process.pid)
396396
self._omc_process.kill()
397397
self._omc_process.wait()
398398

0 commit comments

Comments
 (0)