Enable logStream test

fixes apptask logs in test mode and the id of stream logs
This commit is contained in:
Girish Ramakrishnan
2019-04-24 16:08:30 -07:00
parent 080c667d9c
commit f3910f03ca
3 changed files with 8 additions and 8 deletions

View File

@@ -397,7 +397,7 @@ function getLogStream(req, res, next) {
res.on('close', logStream.close);
logStream.on('data', function (data) {
var obj = JSON.parse(data);
res.write(sse(obj.monotonicTimestamp, JSON.stringify(obj))); // send timestamp as id
res.write(sse(obj.realtimeTimestamp, JSON.stringify(obj))); // send timestamp as id
});
logStream.on('end', res.end.bind(res));
logStream.on('error', res.end.bind(res, null));