@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 +1 -1
- package/src/start_server.js +10 -7
package/package.json
CHANGED
package/src/start_server.js
CHANGED
|
@@ -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
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
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
|
}`,
|