mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 05:40:43 +01:00
fix: path.resolve to logs file
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user