Skip to content

Commit

Permalink
improved log message in ConfigurationMappingLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkMahler committed Aug 25, 2024
1 parent b14129a commit 911a4fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ConfigurationMappingLoader {
public static final List<Path> DEFAULT_CONFIG_LOCATIONS = List.of(".jqassistant.yml", ".jqassistant.yaml", ".jqassistant")
.stream()
.map(Paths::get)
.collect(toList());
.collect(toUnmodifiableList());

/**
* The ordinal for config sources from the user home.
Expand Down Expand Up @@ -264,7 +264,7 @@ private List<ConfigSource> getExternalYamlConfigSources(Path configLocationPath,
return emptyList();
}
if (file.isDirectory()) {
log.info("Loading configuration from directory '{}'.", configLocationPath.toAbsolutePath());
log.info("Scanning for configuration files in directory '{}'.", configLocationPath.toAbsolutePath());
List<Path> configurationFiles = findYamlConfigurationFiles(configLocationPath);
return configurationFiles.stream()
.map(path -> getYamlConfigSource(path, ordinal))
Expand Down

0 comments on commit 911a4fb

Please sign in to comment.