mirror of
https://github.com/RoastSlav/quickdrop.git
synced 2025-12-19 21:39:38 -06:00
logging update
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -34,3 +34,4 @@ build/
|
||||
/db/
|
||||
/log/
|
||||
/files/
|
||||
.qodo
|
||||
@@ -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) {
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user