Closed chilts closed 5 years ago
Oooh this'll be tricky. process.hrtime()
is not free to call as often as we send off logs, but each process could keep a sequence number + timestamp and send that.
This might not get done until we get superfly/fly.rs out, but it's worth cleaning up.
Here are three recent requests to the program mentioned https://github.com/superfly/fly/issues/198#issue-387960560 : https://solitary-leaf-5893.edgeapp.net/
Each request returns the
console.log()
statements and the server log line in different orders. Note also that the first request is missing the equivalent2018-12-05T21:50:11Z syd1 [info] req=https://solitary-leaf-5893.edgeapp.net/
line that the next two requests have.I know that in an evented system that messages could be re-ordered, so I guess this could be fixed in one of two ways (and I'm sure others):
ms
won't be of sufficient granularity, butns
usingprocess.hrtime()
should work out correctly)Thanks!