|
|
@ -7,7 +7,7 @@ const readFileAsync = util.promisify(fs.readFile);
|
|
|
|
const truncateAsync = util.promisify(fs.truncate);
|
|
|
|
const truncateAsync = util.promisify(fs.truncate);
|
|
|
|
const Logs = module.exports;
|
|
|
|
const Logs = module.exports;
|
|
|
|
|
|
|
|
|
|
|
|
Logs.path = path.join(__dirname, '..', '..', 'logs', 'output.log');
|
|
|
|
Logs.path = path.resolve(__dirname, '../../logs/output.log');
|
|
|
|
|
|
|
|
|
|
|
|
Logs.get = async function () {
|
|
|
|
Logs.get = async function () {
|
|
|
|
return await readFileAsync(Logs.path, 'utf-8');
|
|
|
|
return await readFileAsync(Logs.path, 'utf-8');
|
|
|
|