From 4b92db3775bf011d051963c56639c954d6d7e31f Mon Sep 17 00:00:00 2001 From: lolodomo Date: Wed, 13 Dec 2023 08:26:29 +0100 Subject: [PATCH] Add a log when loading a YAML file (#3916) For consistency with other model files loading. Signed-off-by: Laurent Garnier --- .../openhab/core/model/yaml/internal/YamlModelRepository.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/YamlModelRepository.java b/bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/YamlModelRepository.java index a7d04138762..bb71ec3ba93 100644 --- a/bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/YamlModelRepository.java +++ b/bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/YamlModelRepository.java @@ -157,6 +157,7 @@ private void processWatchEvent(String dirName, Kind kind, Path fullPath, YamlMod private AbstractYamlFile readYamlFile(Path path, Class dtoClass) throws YamlParseException { + logger.info("Loading model '{}'", path.toFile().getName()); logger.debug("readYamlFile {} with {}", path.toFile().getAbsolutePath(), dtoClass.getName()); try { AbstractYamlFile dto = yamlReader.readValue(path.toFile(), dtoClass);