fix: path.resolve to logs file

v1.18.x
Julian Lam 5 years ago
parent 8387178b25
commit 5bcaf71501

@ -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');

Loading…
Cancel
Save