changed the directory of log directory
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
||||
node_modules/
|
||||
.env
|
||||
src/util/logs/requests.log
|
||||
logs/requests.log
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user