com.jimuwd.xian.registry-proxy 1.1.11 → 1.1.12
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/dist/server/index.js +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -301,7 +301,7 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
|
|
|
301
301
|
// pipe upstream body-stream to downstream stream and automatically ends the stream to downstream when upstream stream is ended.
|
|
302
302
|
upstreamResponse.body.pipe(resToDownstreamClient, { end: true });
|
|
303
303
|
upstreamResponse.body
|
|
304
|
-
.on('data', (chunk) => logger.
|
|
304
|
+
.on('data', (chunk) => logger.debug(() => `Chunk transferred from ${targetUrl} to downstream client size=${Buffer.byteLength(chunk)}bytes`))
|
|
305
305
|
.on('end', () => logger.info(`Upstream server ${targetUrl} response.body stream ended.`))
|
|
306
306
|
// connection will be closed automatically when all chunk data is transferred (after stream ends).
|
|
307
307
|
.on('close', () => logger.debug(() => `Upstream ${targetUrl} closed stream.`))
|