From c622853354af2318277f9602844d05bd339f715b Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Tue, 10 Sep 2024 12:09:56 -0700 Subject: [PATCH] [OnnxRuntime] Update debug log message (#3463) Fixes: #3461 --- .../src/main/java/ai/djl/onnxruntime/engine/OrtModel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/onnxruntime/onnxruntime-engine/src/main/java/ai/djl/onnxruntime/engine/OrtModel.java b/engines/onnxruntime/onnxruntime-engine/src/main/java/ai/djl/onnxruntime/engine/OrtModel.java index 479a32e28a0..a5cbaea311d 100644 --- a/engines/onnxruntime/onnxruntime-engine/src/main/java/ai/djl/onnxruntime/engine/OrtModel.java +++ b/engines/onnxruntime/onnxruntime-engine/src/main/java/ai/djl/onnxruntime/engine/OrtModel.java @@ -241,7 +241,8 @@ private String getOrtxLibraryPath() { Method method = clazz.getDeclaredMethod("getLibraryPath"); return (String) method.invoke(null); } catch (Throwable e) { - logger.debug("Failed to load onnx extension", e); + logger.info("Onnx extension not found in classpath."); + logger.trace("Failed to load onnx extension", e); } return null; }