Skip to content

Node.js based forum software built for the modern web

fix: path.resolve to logs file

Julian Lam5bcaf71501b5
diff --git a/src/meta/logs.js b/src/meta/logs.js
index 72f478da75..5a6fe5c5ed 100644
--- a/src/meta/logs.js
+++ b/src/meta/logs.js
@@ -7,7 +7,7 @@ const readFileAsync = util.promisify(fs.readFile);
const truncateAsync = util.promisify(fs.truncate);
const Logs = module.exports;
-Logs.path = path.join(__dirname, '..', '..', 'logs', 'output.log');
+Logs.path = path.resolve(__dirname, '../../logs/output.log');
Logs.get = async function () {
return await readFileAsync(Logs.path, 'utf-8');