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:
lolodomo 2023-12-13 08:26:29 +01:00 committed by GitHub
parent 8082daa290
commit 4b92db3775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);