mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Update logger.js
This commit is contained in:
parent
64eeb50b05
commit
69dcd8b205
@ -17,7 +17,7 @@ function init(x) {
|
|||||||
console.log(`[INFO | ${timestamp}] Initialising logger`);
|
console.log(`[INFO | ${timestamp}] Initialising logger`);
|
||||||
console.log(`[INFO | ${timestamp}] Cleaning up...`);
|
console.log(`[INFO | ${timestamp}] Cleaning up...`);
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
if(!file.startsWith(`${d}-`) && !file.startsWith(`${d-1}-`)) {
|
if(!file.startsWith(`${d}-`)) {
|
||||||
fs.unlinkSync(`./logs/${file}`)
|
fs.unlinkSync(`./logs/${file}`)
|
||||||
console.log(`[INFO | ${timestamp}] Deleting ./logs/${file}`);
|
console.log(`[INFO | ${timestamp}] Deleting ./logs/${file}`);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user