forgot to remove sth from filename
This commit is contained in:
parent
ac07b5089d
commit
07415b9298
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user