mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31:53 +01:00
Add a log when loading a YAML file (#3916)
For consistency with other model files loading. Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
8082daa290
commit
4b92db3775
@ -157,6 +157,7 @@ public class YamlModelRepository implements WatchService.WatchEventListener {
|
|||||||
|
|
||||||
private AbstractYamlFile readYamlFile(Path path, Class<? extends AbstractYamlFile> dtoClass)
|
private AbstractYamlFile readYamlFile(Path path, Class<? extends AbstractYamlFile> dtoClass)
|
||||||
throws YamlParseException {
|
throws YamlParseException {
|
||||||
|
logger.info("Loading model '{}'", path.toFile().getName());
|
||||||
logger.debug("readYamlFile {} with {}", path.toFile().getAbsolutePath(), dtoClass.getName());
|
logger.debug("readYamlFile {} with {}", path.toFile().getAbsolutePath(), dtoClass.getName());
|
||||||
try {
|
try {
|
||||||
AbstractYamlFile dto = yamlReader.readValue(path.toFile(), dtoClass);
|
AbstractYamlFile dto = yamlReader.readValue(path.toFile(), dtoClass);
|
||||||
|
Loading…
Reference in New Issue
Block a user