From 7776d594d8898288f95f83c8317a5305853ba2b1 Mon Sep 17 00:00:00 2001 From: Kartik Verma <3920286+vkartik97@users.noreply.github.com> Date: Sun, 11 Mar 2018 12:55:45 +0530 Subject: [PATCH] log bugs removed --- autoploy_main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoploy_main.js b/autoploy_main.js index 5b01b6f..c53b8e3 100644 --- a/autoploy_main.js +++ b/autoploy_main.js @@ -13,7 +13,7 @@ app.use(BodyParser.json()); app.use(express.static(path.join(__dirname, 'public'))); app.get('/', (req, res) => { - var lines = require('fs').readFileSync("./public/logs.out", 'utf-8').split('\n') + var lines = require('fs').readFileSync(path.join(__dirname, 'public/logs.out'), 'utf-8').split('\n') var out = "" for(var i = 0 ; i < lines.length ; i++) { out = out + "
" + lines[i]