Add a warning log to mention the field when configuration parsing is failing (#4311)

Fixes #4248

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2024-07-14 10:06:41 +02:00 committed by GitHub
parent 24d1ba0b2a
commit 9d4ec613a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,6 +127,9 @@ public final class ConfigParser {
try {
value = valueAs(value, type);
if (value == null) {
LOGGER.warn(
"Could not set value for field '{}' because conversion failed. Check your configuration value.",
fieldName);
continue;
}
LOGGER.trace("Setting value ({}) {} to field '{}' in configuration class {}", type.getSimpleName(),