You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1604486775436] INFO (15596 on CM000091.local): Server ready
[1604486778910] INFO (15596 on CM000091.local): Received request
[1604486788921] INFO (15596 on CM000091.local): Response sent
[1604486788922] INFO (15596 on CM000091.local): request completed
res: {
"statusCode": 200,
"headers": {
"x-powered-by": "Express",
"content-type": "text/plain; charset=utf-8",
"content-length": "2",
"etag": "W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""
}
}
responseTime: 10012
req: {
"id": 1,
"method": "GET",
"url": "/foo",
"headers": {
"accept": "application/json, text/plain, */*",
"user-agent": "axios/0.21.0",
"host": "localhost:3000",
"connection": "close"
},
"remoteAddress": "::ffff:127.0.0.1",
"remotePort": 59200
}
Case 2 : a request with a timeout set (3sec)
[1604487109825] INFO (15694 on CM000091.local): Server ready
[1604487111452] INFO (15694 on CM000091.local): Received request
[1604487121458] INFO (15694 on CM000091.local): Response sent
No pino-http log "request completed".
Is it a normal behavior ?
The text was updated successfully, but these errors were encountered:
I have an issue : when my client cut the connection (generally because of a timeout), then pino-http does not log anything.
The default behavior of express is to continue the request processing, even if the client has gone, so it could be interesting to have these logs.
A small example :
Case 1 : a simple request, no timeout
Case 2 : a request with a timeout set (3sec)
No pino-http log "request completed".
Is it a normal behavior ?
The text was updated successfully, but these errors were encountered: