Warning log when oshi.properties not found #1285
Labels
compatibility
Extending OSHI compatibility to OSs or versions
PR welcome
Not maintainer's priority to do but will accept contributions!
Hi,
Thanks for the useful library
We have a warning log
No default configuration found
when loading oshi where theThread.currentThread().getContextClassLoader()
is not the classloader that loads the oshi jaroshi/oshi-core/src/main/java/oshi/util/FileUtil.java
Line 226 in 1e56bf1
I have a proposal that if the resources is empty from the given classloader, we could try the ClassLoader of GlobalConfig.class.getClassLoader()
do you think it make sense?
I can create the pull request if it looks good to you
The text was updated successfully, but these errors were encountered: