@lark-apaas/nestjs-logger 1.0.8 → 1.0.9-alpha.1
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9525,7 +9525,7 @@ var LoggingInterceptor = class {
|
|
|
9525
9525
|
method,
|
|
9526
9526
|
path
|
|
9527
9527
|
});
|
|
9528
|
-
const startedAt =
|
|
9528
|
+
const startedAt = process.hrtime();
|
|
9529
9529
|
const baseMeta = {
|
|
9530
9530
|
method,
|
|
9531
9531
|
path,
|
|
@@ -9566,7 +9566,7 @@ url=${req.url}`, "HTTPTraceInterceptor");
|
|
|
9566
9566
|
return;
|
|
9567
9567
|
}
|
|
9568
9568
|
logged = true;
|
|
9569
|
-
const durationMs =
|
|
9569
|
+
const durationMs = process.hrtime(startedAt)[1] / 1e6;
|
|
9570
9570
|
const statusCode = res.statusCode;
|
|
9571
9571
|
const responseMeta = {
|
|
9572
9572
|
...baseMeta,
|
|
@@ -9615,7 +9615,7 @@ duration_ms=${durationMs}`, "HTTPTraceInterceptor");
|
|
|
9615
9615
|
return next.handle().pipe((0, import_operators.tap)({
|
|
9616
9616
|
next: /* @__PURE__ */ __name((data) => {
|
|
9617
9617
|
const statusCode = res.statusCode;
|
|
9618
|
-
const durationMs =
|
|
9618
|
+
const durationMs = process.hrtime(startedAt)[1] / 1e6;
|
|
9619
9619
|
const isError = statusCode > 400;
|
|
9620
9620
|
const responseData = {
|
|
9621
9621
|
method,
|