Update logger.js

This commit is contained in:
Eartharoid 2019-05-05 16:37:39 +01:00
parent 64eeb50b05
commit 69dcd8b205

View File

@ -17,7 +17,7 @@ function init(x) {
console.log(`[INFO | ${timestamp}] Initialising logger`);
console.log(`[INFO | ${timestamp}] Cleaning up...`);
for (const file of files) {
if(!file.startsWith(`${d}-`) && !file.startsWith(`${d-1}-`)) {
if(!file.startsWith(`${d}-`)) {
fs.unlinkSync(`./logs/${file}`)
console.log(`[INFO | ${timestamp}] Deleting ./logs/${file}`);
};