From f82ae148c442967bcb1877b0e145457906607904 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Wed, 7 Aug 2024 12:16:57 -0400 Subject: [PATCH] Improved warning in `Native.loadByUrl` (#127) --- src/main/java/org/jvnet/winp/Native.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jvnet/winp/Native.java b/src/main/java/org/jvnet/winp/Native.java index bd51797..91c9c47 100755 --- a/src/main/java/org/jvnet/winp/Native.java +++ b/src/main/java/org/jvnet/winp/Native.java @@ -152,7 +152,7 @@ private static File loadByUrl(URL dllRes, URL exeRes) throws IOException { if (dllUrl.startsWith("file:")) { // during debug the files are on disk and not in a jar if (!exeRes.toExternalForm().startsWith("file:")) { - LOGGER.log(Level.WARNING, "DLL and EXE are inconsistenly present on disk"); + LOGGER.log(Level.WARNING, "DLL and EXE are inconsistently present on disk"); } File f; @@ -173,7 +173,7 @@ private static File loadByUrl(URL dllRes, URL exeRes) throws IOException { loadDll(dllFile); return exeFile; } catch (Throwable e) { - LOGGER.log(Level.WARNING, "Failed to load DLL from static location", e); + LOGGER.log(Level.INFO, "Failed to load DLL from static location, falling back to temp file", e); } File dllFile = extractToTmpLocation(dllRes);