Compare commits

..

2 Commits

Author SHA1 Message Date
07415b9298
forgot to remove sth from filename 2023-03-23 21:31:09 +02:00
ac07b5089d
v1.2.2 2023-03-23 21:16:56 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@navy.gif/logger", "name": "@navy.gif/logger",
"version": "1.2.1", "version": "1.2.2",
"description": "Logging thing", "description": "Logging thing",
"main": "index.js", "main": "index.js",
"author": "Navy.gif", "author": "Navy.gif",

View File

@ -118,7 +118,7 @@ class MasterLogger {
if (!type) if (!type)
throw new Error('Missing file type'); throw new Error('Missing file type');
const fileName = `${moment(date).format('YYYY-MM-DD')}-${type}-${date}.log`; const fileName = `${moment(date).format('YYYY-MM-DD')}-${type}.log`;
const filePath = path.join(this.directory, fileName); const filePath = path.join(this.directory, fileName);
if (!fs.existsSync(filePath)) if (!fs.existsSync(filePath))