Fix log test

This commit is contained in:
Girish Ramakrishnan
2022-11-06 16:02:46 +01:00
parent 440504a6e9
commit 925b08c7a1
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ async function getLogStream(req, res, next) {
res.on('close', logStream.close);
logStream.on('data', function (data) {
const 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));