diff --git a/src/main/java/cokr/xit/interfaces/lntris/InterfaceInfoReader.java b/src/main/java/cokr/xit/interfaces/lntris/InterfaceInfoReader.java index f1b1706..f3b935f 100644 --- a/src/main/java/cokr/xit/interfaces/lntris/InterfaceInfoReader.java +++ b/src/main/java/cokr/xit/interfaces/lntris/InterfaceInfoReader.java @@ -105,7 +105,10 @@ public abstract class InterfaceInfoReader> extends }, receiptCount() ); - if (paths.isEmpty()) return Collections.emptyList(); + if (paths.isEmpty()) { + log().debug("No files found to process"); + return Collections.emptyList(); + } List fileStatus = paths.stream() .map(path -> { @@ -131,9 +134,13 @@ public abstract class InterfaceInfoReader> extends Map> successFail = fileStatus.stream() //처리 결과를 성공 / 실패로 분류 .collect(Collectors.groupingBy(FileStatus::isSuccess)); - List success = successFail.get(true); + List + success = successFail.get(true), + fail = successFail.get(false); + log().debug("success: {}, fail: {}", !isEmpty(success) ? success.size() : 0, !isEmpty(fail) ? fail.size() : 0); + move(FileStatus.getPaths(success), successDir()); // 성공 디렉토리로 이동 - move(FileStatus.getPaths(successFail.get(false)), failDir()); // 실패 디렉토리로 이동 + move(FileStatus.getPaths(fail), failDir()); // 실패 디렉토리로 이동 return isEmpty(success) ? Collections.emptyList() :