From 07415b929810719f0215f899a1cddeeb23f4795d Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 23 Mar 2023 21:31:09 +0200 Subject: [PATCH] forgot to remove sth from filename --- src/MasterLogger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MasterLogger.js b/src/MasterLogger.js index f904e4c..d46693f 100644 --- a/src/MasterLogger.js +++ b/src/MasterLogger.js @@ -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))