Поправки журналирования
This commit is contained in:
@@ -659,8 +659,6 @@ class WebWorker {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log(LM_WARN, `clean dir ${dir}, maxSize=${maxSize}, found ${files.length} files, total size=${size}`);
|
|
||||||
|
|
||||||
files.sort((a, b) => a.stat.mtimeMs - b.stat.mtimeMs);
|
files.sort((a, b) => a.stat.mtimeMs - b.stat.mtimeMs);
|
||||||
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
@@ -673,7 +671,10 @@ class WebWorker {
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
log(LM_WARN, `removed ${i} files`);
|
if (i) {
|
||||||
|
log(LM_WARN, `clean dir ${dir}, maxSize=${maxSize}, found ${files.length} files, total size=${size}`);
|
||||||
|
log(LM_WARN, `removed ${i} files`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async periodicCleanDir(dirConfig) {
|
async periodicCleanDir(dirConfig) {
|
||||||
@@ -727,7 +728,7 @@ class WebWorker {
|
|||||||
log('inpx file: changes found, recreating DB');
|
log('inpx file: changes found, recreating DB');
|
||||||
await this.recreateDb();
|
await this.recreateDb();
|
||||||
} else {
|
} else {
|
||||||
log('inpx file: no changes');
|
//log('inpx file: no changes');
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
log(LM_ERR, `periodicCheckInpx: ${e.message}`);
|
log(LM_ERR, `periodicCheckInpx: ${e.message}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user