SUPPORT-8689: fix(4) add logs and information about exceptions

This commit is contained in:
Artyom Hackimullin 2024-11-12 16:32:08 +03:00
parent fbf02422d3
commit 6fda60d1a6
2 changed files with 2 additions and 2 deletions

View file

@ -64,6 +64,7 @@ public class EsnsiOkopfClient {
if (Objects.nonNull(archiveStream.getNextEntry())) {
return br.lines().collect(Collectors.joining(System.lineSeparator()));
}
logger.warn("Esnsi okopf client received an empty archive in response.");
}
catch (IOException e) {
throw new RuntimeException("Failed to unzip the okopf file", e);

View file

@ -71,8 +71,7 @@ public class EsnsiOkopfSchedulerServiceImpl implements EsnsiOkopfSchedulerServic
okopfDao.save(okopfRecords);
}
else {
logger.warn(
"Esnsi okopf client requested an archive of okopf files but received an empty archive in response.");
logger.warn("Okopf file could not be loaded");
}
}
catch (JsonProcessingException e) {