send monotonic timestamp as well

This commit is contained in:
Girish Ramakrishnan
2015-11-02 14:26:15 -08:00
parent 63c10e8f02
commit 5de3baffd4
2 changed files with 7 additions and 2 deletions

View File

@@ -309,7 +309,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.timestamp, JSON.stringify(obj))); // send timestamp as id
res.write(sse(obj.monotonicTimestamp, JSON.stringify(obj))); // send timestamp as id
});
logStream.on('end', res.end.bind(res));
logStream.on('error', res.end.bind(res, null));