logging update

This commit is contained in:
Rostislav Raykov
2025-01-13 12:13:34 +02:00
parent e17c29f45c
commit b2f74fb03e
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@@ -34,3 +34,4 @@ build/
/db/
/log/
/files/
.qodo

View File

@@ -45,7 +45,7 @@ public class FileRestController {
}
try {
logger.info("Processing chunk {} of {}", chunkNumber, totalChunks);
logger.info("Saving chunk {} of {}", chunkNumber, totalChunks);
fileService.saveFileChunk(file, fileName, chunkNumber);
if (chunkNumber + 1 == totalChunks) {

View File

@@ -119,6 +119,7 @@ public class FileService {
throw ex;
}
}
logger.info("All chunks merged into file: {}", finalFile);
}
}
@@ -153,7 +154,7 @@ public class FileService {
return null;
}
logger.info("File received: {}", file.getName());
logger.info("Saving file: {}", file.getName());
String uuid = UUID.randomUUID().toString();
while (fileRepository.findByUUID(uuid).isPresent()) {