Compare commits
2 Commits
332db8e340
...
07415b9298
Author | SHA1 | Date | |
---|---|---|---|
07415b9298 | |||
ac07b5089d |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navy.gif/logger",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.2",
|
||||
"description": "Logging thing",
|
||||
"main": "index.js",
|
||||
"author": "Navy.gif",
|
||||
|
@ -118,7 +118,7 @@ class MasterLogger {
|
||||
if (!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);
|
||||
|
||||
if (!fs.existsSync(filePath))
|
||||
|
Loading…
Reference in New Issue
Block a user