kb-server 0.0.2-beta.1 → 0.0.2
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.
|
@@ -148,7 +148,10 @@ const packSSE = (sseHandlers, options) => {
|
|
|
148
148
|
},
|
|
149
149
|
};
|
|
150
150
|
const response = (0, exports.createSSEMsg)("error", JSON.stringify(errResponse));
|
|
151
|
+
// 完成响应
|
|
152
|
+
took = Date.now() - start;
|
|
151
153
|
logger_1.logger.info(`发送消息:\n${response}`);
|
|
154
|
+
logger_1.logger.info(`耗时:${took} ms - ${requestId}`);
|
|
152
155
|
res.write(response, () => res.end());
|
|
153
156
|
}
|
|
154
157
|
};
|