Warnings printed when config.properties is not available
Describe the bug
Several warnings are printed if there is not a config.properties file:
[main] WARN widoco.Configuration - Error while reading configuration properties from [[...]/config/config.properties]: [...]/config/config.properties (No such file or directory)
[main] WARN widoco.Configuration - Error while loading the default property file: [...]/config/config.properties (No such file or directory)
[main] WARN widoco.Configuration - Error while reading configuration properties from []: (No such file or directory)
[main] WARN widoco.Configuration - Error while reading configuration properties from []: (No such file or directory)
To Reproduce
Steps to reproduce the behavior:
- Run Widoco without a
config.propertiesfile
Expected behavior
No warnings should appear.
AFAIK this is a feature, https://github.com/dgarijo/Widoco/blob/master/src/main/java/widoco/Configuration.java#L417
Since these are warnings and not error log level, maybe the wording can be changed to remove "Error" from it.
They should probably just be "info" since, as noted in the comment you linked:
we can continue safely without a property file
And perhaps just have a concise message stating that a property file won't be used.
But I completely agree with your suggestion!