mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
better log
This commit is contained in:
Binary file not shown.
@@ -81,8 +81,7 @@ public class AutoSavePlugin implements IPlugIn {
|
|||||||
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
|
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
|
||||||
|
|
||||||
lastSave = System.currentTimeMillis();
|
lastSave = System.currentTimeMillis();
|
||||||
String fileName = generateBackupFileName(plugInPort.getCurrentFileName());
|
String fileName = generateBackupFileName(plugInPort.getCurrentFileName());
|
||||||
LOG.info("Creating backup file: " + fileName);
|
|
||||||
plugInPort.saveProjectToFile(fileName, true);
|
plugInPort.saveProjectToFile(fileName, true);
|
||||||
cleanupExtra();
|
cleanupExtra();
|
||||||
}
|
}
|
||||||
@@ -131,7 +130,7 @@ public class AutoSavePlugin implements IPlugIn {
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < files.length && totalSize > maxTotalSize) {
|
while (i < files.length && totalSize > maxTotalSize) {
|
||||||
totalSize -= files[i].length();
|
totalSize -= files[i].length();
|
||||||
LOG.info("Deleteting old backup file: " + files[i].getName());
|
LOG.info("Maximum backup size exceeded. Deleteting old backup file: " + files[i].getName());
|
||||||
files[i].delete();
|
files[i].delete();
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user