зеркало из https://github.com/mozilla/smarthome.git
improve error logging
Related to: https://github.com/eclipse/smarthome/pull/1172 Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
This commit is contained in:
Родитель
4799c095c9
Коммит
1b1c52dfed
|
@ -109,7 +109,9 @@ public class ThingFactory {
|
|||
if (thingHandlerFactory.supportsThingType(thingTypeUID)) {
|
||||
Thing thing = thingHandlerFactory.createThing(thingTypeUID, configuration, thingUID, bridgeUID);
|
||||
if (thing == null) {
|
||||
logger.error("Thing factory returned null when it reports to support the thing");
|
||||
logger.error(
|
||||
"Thing factory ({}) returned null on create thing when it reports to support the thing type ({}).",
|
||||
thingHandlerFactory.getClass(), thingTypeUID);
|
||||
} else {
|
||||
if (properties != null) {
|
||||
for (String key : properties.keySet()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче