Added debug log

This commit is contained in:
deiflaender 2022-03-15 16:31:11 +01:00
parent 34dc4f4a98
commit 8086b95eb1

View File

@ -137,11 +137,15 @@ public class DictionaryService {
private Set<DictionaryEntry> convertEntries(String typeId, Long fromVersion) {
log.info("TypeId: {} From version is {}", typeId, fromVersion);
var type = dictionaryClient.getDictionaryForType(typeId, fromVersion);
Set<DictionaryEntry> entries = new HashSet<>(type
.getEntries());
log.info("TypeId: {} From version is {} entries are {}", typeId, fromVersion, entries.stream().map(e -> e.getValue() + e.getVersion()).collect(Collectors.toList()));
if (type.isCaseInsensitive()) {
entries.forEach(entry -> entry.setValue(entry.getValue().toLowerCase(Locale.ROOT)));
}