mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 13:21:53 +01:00
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:
parent
24d1ba0b2a
commit
9d4ec613a2
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user