-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
add super verbose, show unknown income request header and body #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure "superverbose" is the best term to use here. Many CLI tools have levels of verbosity, and the usual naming would be very-verbose
. What do you think of calling it that?
Looks like there are also some merge conflicts to take a look at.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a couple more thoughts while I was looking at #279
bin/http-server
Outdated
} | ||
logger.info(colors.cyan(headerStr)); | ||
} | ||
if (req.readable) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a big fan of logging the request body, I think it might be a bit too verbose. What do you think?
info: console.log, | ||
request: function (req, res, error) { | ||
var date = utc ? new Date().toUTCString() : new Date(); | ||
if (error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be showing all this info if there was an error, or if there was no error? Was the logic accidentally flipped here?
Co-Authored-By: Jade Michael Thornton <jade@jmthornton.net>
Co-Authored-By: Jade Michael Thornton <jade@jmthornton.net>
Co-Authored-By: Jade Michael Thornton <jade@jmthornton.net>
Fixes #278