Widoco icon indicating copy to clipboard operation
Widoco copied to clipboard

Warnings printed when config.properties is not available

Open stefanogermano opened this issue 2 years ago • 2 comments

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:

  1. Run Widoco without a config.properties file

Expected behavior

No warnings should appear.

stefanogermano avatar Jul 08 '23 18:07 stefanogermano

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.

ThomasThelen avatar Aug 26 '24 04:08 ThomasThelen

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!

stefanogermano avatar Aug 27 '24 22:08 stefanogermano