Skip to content

Commit 5fe1461

Browse files
committed
Replace print statements with logger calls
1 parent 3a46f1b commit 5fe1461

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scyjava/_jvm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def shutdown_jvm() -> None:
226226
try:
227227
callback()
228228
except Exception as e:
229-
print(f"Exception during shutdown callback: {e}")
229+
_logger.error(f"Exception during shutdown callback: {e}")
230230

231231
# dispose AWT resources if applicable
232232
if is_awt_initialized():
@@ -238,7 +238,7 @@ def shutdown_jvm() -> None:
238238
try:
239239
jpype.shutdownJVM()
240240
except Exception as e:
241-
print(f"Exception during JVM shutdown: {e}")
241+
_logger.error(f"Exception during JVM shutdown: {e}")
242242

243243

244244
def jvm_started() -> bool:

0 commit comments

Comments
 (0)