fix: path.resolve to logs file

This commit is contained in:
Julian Lam
2020-04-16 20:46:03 -04:00
parent 8387178b25
commit 5bcaf71501

View File

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