@nxtedition/lib 15.0.27 → 15.0.28
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/http.js +4 -0
- package/package.json +1 -1
package/http.js
CHANGED
|
@@ -134,6 +134,8 @@ module.exports.request = async function request(ctx, next) {
|
|
|
134
134
|
reqLogger.error('request error')
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
reqLogger.debug('request ended')
|
|
138
|
+
|
|
137
139
|
res.end()
|
|
138
140
|
} else {
|
|
139
141
|
reqLogger = reqLogger.child({ res, err, responseTime })
|
|
@@ -145,6 +147,8 @@ module.exports.request = async function request(ctx, next) {
|
|
|
145
147
|
reqLogger.error('request error')
|
|
146
148
|
}
|
|
147
149
|
|
|
150
|
+
reqLogger.debug('request destroyed')
|
|
151
|
+
|
|
148
152
|
res.destroy()
|
|
149
153
|
}
|
|
150
154
|
}
|