We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
destroyed
1 parent 8d54b18 commit 5c34ec4Copy full SHA for 5c34ec4
src/telemetry/requestLogger.ts
@@ -80,10 +80,11 @@ function finishLog<SLocals extends AnyServiceLocals = ServiceLocals<Configuratio
80
}
81
const [url, preInfo] = getBasicInfo(req);
82
83
- let responseType = 'finished';
+ let responseType = 'unknown';
84
85
- // ts warning is known and incorrect—`aborted` is a subset of `destroyed`
86
- if (req.aborted) {
+ if (res.writableFinished) {
+ responseType = 'finished';
87
+ } else if (req.aborted) {
88
responseType = 'aborted';
89
} else if (req.destroyed) {
90
responseType = 'destroyed';
0 commit comments