Skip to content

Commit 769c66b

Browse files
committed
Increase the level of logging to save the images.
1 parent bd2343c commit 769c66b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/ru/mystamps/web/service/DatabaseImagePersistenceStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void save(MultipartFile file, Image image) {
5555
imageData.setContent(file.getBytes());
5656

5757
ImageData entity = imageDataDao.save(imageData);
58-
LOG.debug("Image's data entity saved to database ({})", entity);
58+
LOG.info("Image's data entity saved to database ({})", entity);
5959

6060
} catch (IOException e) {
6161
// throw RuntimeException for rolling back transaction

src/main/java/ru/mystamps/web/service/FilesystemImagePersistenceStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void save(MultipartFile file, Image image) {
6767
Path dest = createFile(image);
6868
writeToFile(file, dest);
6969

70-
LOG.debug("Image's data was written into file {}", dest);
70+
LOG.info("Image's data was written into file {}", dest);
7171

7272
} catch (IOException ex) {
7373
throw new ImagePersistenceException(ex);

src/main/java/ru/mystamps/web/service/ImageServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public String save(MultipartFile file) {
6868
throw new ImagePersistenceException("Can't save image");
6969
}
7070

71-
LOG.debug("Image entity was saved to database ({})", entity);
71+
LOG.info("Image entity was saved to database ({})", entity);
7272

7373
imagePersistenceStrategy.save(file, entity);
7474

0 commit comments

Comments
 (0)