From 0e4b4073009bea342ce8c2094a74fb628330ad67 Mon Sep 17 00:00:00 2001 From: Xin Yang Date: Fri, 12 Jul 2024 13:45:02 -0700 Subject: [PATCH] [rust] Change loging level to debug --- .../main/java/ai/djl/huggingface/tokenizers/jni/LibUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/tokenizers/src/main/java/ai/djl/huggingface/tokenizers/jni/LibUtils.java b/extensions/tokenizers/src/main/java/ai/djl/huggingface/tokenizers/jni/LibUtils.java index 2caa6e9312e..0fbd8065b9e 100644 --- a/extensions/tokenizers/src/main/java/ai/djl/huggingface/tokenizers/jni/LibUtils.java +++ b/extensions/tokenizers/src/main/java/ai/djl/huggingface/tokenizers/jni/LibUtils.java @@ -158,6 +158,10 @@ private static boolean copyJniLibraryFromClasspath( for (String libName : libs) { String libPath = "native/lib/" + classifier + "/" + flavor + "/" + libName; + if (ClassLoaderUtils.getResource(libPath) == null) { + logger.info("library not found in classpath: {}", libPath); + return false; + } logger.info("Extracting {} to cache ...", libPath); try (InputStream is = ClassLoaderUtils.getResourceAsStream(libPath)) { Path target = tmp.resolve(libName);