Skip to content

Commit

Permalink
Improved warning in Native.loadByUrl (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored Aug 7, 2024
1 parent 56f77dc commit f82ae14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jvnet/winp/Native.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit f82ae14

Please sign in to comment.