Skip to content

Conversation

@gamemaker1
Copy link
Contributor

Related Issues

Closes #660.

Description

  • adds request logging; logs request time, ip, method, and url, as well as the response status code and response time.
  • request logging is enabled by default, and can be disabled using --no-request-logging, or -L.

Copy link
Contributor

@leerob leerob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - should we add a test?

@gamemaker1
Copy link
Contributor Author

Sure, will do

@gamemaker1
Copy link
Contributor Author

Added tests now :]

@leerob leerob merged commit 337279c into vercel:main Jul 30, 2022
@gamemaker1 gamemaker1 deleted the feat/add-request-logging branch July 30, 2022 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Where is log? Can I use serve in production environment?

2 participants