Closed poelstra closed 6 years ago
Oops, you're right! They were old commits that I still had lying around, and I thought I finished them back then...
That last middleware should have gone, but the rest of log.js
probably needs to stay because it's also used for generic logging (i.e. not request-specific). That does mean the timestamp stuff in it needs to be fixed.
I.e. morgan
is only used for logging the requests, it's not a generic logging mechanism.
I'll close this PR for now (working on other things in the mean time). I'll make a new one once I cleaned it up.
localserver.js
has logging, but it had issues:New logging uses Apache-style logging, e.g.: