Improve log message for invalid configuration updates by handler (#2766)

Signed-off-by: Jan N. Klug <github@klug.nrw>
pull/2768/head
J-N-K 2022-02-15 12:31:18 +01:00 committed by GitHub
parent 3d7be0ffa7
commit 8f5d703ceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -451,8 +451,9 @@ public abstract class BaseThingHandler implements ThingHandler {
try {
callback.validateConfigurationParameters(this.thing, configuration.getProperties());
} catch (ConfigValidationException e) {
logger.warn("Attempt to apply invalid configuration '{}' on thing '{}' blocked. This is most likely a bug.",
configuration, thing.getUID());
logger.warn(
"Attempt to apply invalid configuration '{}' on thing '{}' blocked. This is most likely a bug: {}",
configuration, thing.getUID(), e.getValidationMessages());
return;
}
try {