chunk save log 추가
This commit is contained in:
@@ -506,11 +506,15 @@ public class FIleChecker {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
File dir = new File(targetPath);
|
File dir = new File(targetPath);
|
||||||
|
log.info("targetPath={}", targetPath);
|
||||||
|
log.info("absolute targetPath={}", dir.getAbsolutePath());
|
||||||
|
|
||||||
if (!dir.exists()) {
|
if (!dir.exists()) {
|
||||||
dir.mkdirs();
|
dir.mkdirs();
|
||||||
}
|
}
|
||||||
|
|
||||||
File dest = new File(dir, String.valueOf(chunkIndex));
|
File dest = new File(dir, String.valueOf(chunkIndex));
|
||||||
|
log.info("real save path = {}", dest.getAbsolutePath());
|
||||||
|
|
||||||
log.info("chunkIndex={}, uploadSize={}", chunkIndex, mfile.getSize());
|
log.info("chunkIndex={}, uploadSize={}", chunkIndex, mfile.getSize());
|
||||||
log.info("savedSize={}", dest.length());
|
log.info("savedSize={}", dest.length());
|
||||||
@@ -522,6 +526,9 @@ public class FIleChecker {
|
|||||||
log.info("after delete={}", dest.length());
|
log.info("after delete={}", dest.length());
|
||||||
mfile.transferTo(dest);
|
mfile.transferTo(dest);
|
||||||
|
|
||||||
|
log.info("after transfer size={}", dest.length());
|
||||||
|
log.info("after transfer exists={}", dest.exists());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error("chunk save error", e);
|
log.error("chunk save error", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user