changed the directory of log directory

This commit is contained in:
2025-08-29 15:49:35 +05:30
parent 454553adbb
commit 50753295b4
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,3 @@
node_modules/
.env
src/util/logs/requests.log
logs/requests.log

View File

@@ -4,7 +4,7 @@ const path = require('path');
const isDev = process.env.NODE_ENV !== 'production';
const logDir = path.join(__dirname, 'logs');
const logDir = path.join(__dirname, '../..', 'logs');
if (!fs.existsSync(logDir)) {
fs.mkdirSync(logDir);
}