@jsenv/server 14.1.6 → 14.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/server",
3
- "version": "14.1.6",
3
+ "version": "14.1.7",
4
4
  "description": "Write your Node.js server using pure functions",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -871,13 +871,16 @@ export const startServer = async ({
871
871
  onHeadersSent: ({ status, statusText }) => {
872
872
  const statusType = statusToType(status)
873
873
  addRequestLog(requestNode, {
874
- type: {
875
- information: "info",
876
- success: "info",
877
- redirection: "info",
878
- client_error: "warn",
879
- server_error: "error",
880
- }[statusType],
874
+ type:
875
+ status === 404 && request.pathname === "/favicon.ico"
876
+ ? "debug"
877
+ : {
878
+ information: "info",
879
+ success: "info",
880
+ redirection: "info",
881
+ client_error: "warn",
882
+ server_error: "error",
883
+ }[statusType],
881
884
  value: `${colorizeResponseStatus(status)} ${
882
885
  responseProperties.statusMessage || statusText
883
886
  }`,