Skip to content

Commit

Permalink
log bugs removed
Browse files Browse the repository at this point in the history
  • Loading branch information
krtkvrm committed Mar 11, 2018
1 parent 062a086 commit 7776d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoploy_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "<br>" + lines[i]
Expand Down

0 comments on commit 7776d59

Please sign in to comment.