Update index.js

This commit is contained in:
Kalakoi
2018-05-09 14:01:36 -04:00
committed by GitHub
parent 8cb3e610be
commit c9d7619c18

View File

@@ -23,14 +23,9 @@ function print(msg, err) {
var timestamp = "[" + h + ":" + m + ":" + s + "]"; var timestamp = "[" + h + ":" + m + ":" + s + "]";
console.log(timestamp, msg); console.log(timestamp, msg);
newLog = {time: timestamp, message: msg};
logs.push(newLog);
if(err) { if(err) {
console.log(err); console.log(err);
errLog = {time: timestamp, message: err};
logs.push(errLog);
} }
} }