pinojs/pino-std-serializers

Restify req.url broken by #29

rektide opened this issue · 2 comments

Hi, apologies,

In #29, req.path was made preferred to req.url, for finding the url. In restify however req.path is a fucntion (this link is to current master branch). This causes the url not to be logged for restify systems.

Would you like to send a Pull Request to address this issue? Remember to add unit tests.

Working on it, sure. I plan on testing req.path if present to see if it's a function. This feels like it'll have the highest compatibility, at the cost of some speed. Other implementation suggestions welcome.