Skip to content

Commit

Permalink
Refactor: error 로그 추가 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
gikhoon authored Feb 20, 2024
1 parent fa350b7 commit 049f5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/cotato/csquiz/global/S3/S3Uploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private String putS3(File uploadFile, String fileName) {

private Optional<File> convert(MultipartFile file) throws ImageException {
File convertFile = new File(System.getProperty("user.dir") + "/" + UUID.randomUUID());
log.info("original file name: {}", file.getName());
log.info("original file name: {}", convertFile.getName());

try {
log.info("convert try start");
Expand All @@ -70,7 +70,7 @@ private Optional<File> convert(MultipartFile file) throws ImageException {
return Optional.of(convertFile);
}
} catch (IOException e) {
log.info("convert 실패");
log.error("convert 실패", e);
throw new ImageException(ErrorCode.IMAGE_PROCESSING_FAIL);
}
log.info("convert empty");
Expand Down

0 comments on commit 049f5ee

Please sign in to comment.