@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.cjs
CHANGED
|
@@ -9542,7 +9542,7 @@ var LoggingInterceptor = class {
|
|
|
9542
9542
|
method,
|
|
9543
9543
|
path
|
|
9544
9544
|
});
|
|
9545
|
-
const startedAt =
|
|
9545
|
+
const startedAt = process.hrtime();
|
|
9546
9546
|
const baseMeta = {
|
|
9547
9547
|
method,
|
|
9548
9548
|
path,
|
|
@@ -9583,7 +9583,7 @@ url=${req.url}`, "HTTPTraceInterceptor");
|
|
|
9583
9583
|
return;
|
|
9584
9584
|
}
|
|
9585
9585
|
logged = true;
|
|
9586
|
-
const durationMs =
|
|
9586
|
+
const durationMs = process.hrtime(startedAt)[1] / 1e6;
|
|
9587
9587
|
const statusCode = res.statusCode;
|
|
9588
9588
|
const responseMeta = {
|
|
9589
9589
|
...baseMeta,
|
|
@@ -9632,7 +9632,7 @@ duration_ms=${durationMs}`, "HTTPTraceInterceptor");
|
|
|
9632
9632
|
return next.handle().pipe((0, import_operators.tap)({
|
|
9633
9633
|
next: /* @__PURE__ */ __name((data) => {
|
|
9634
9634
|
const statusCode = res.statusCode;
|
|
9635
|
-
const durationMs =
|
|
9635
|
+
const durationMs = process.hrtime(startedAt)[1] / 1e6;
|
|
9636
9636
|
const isError = statusCode > 400;
|
|
9637
9637
|
const responseData = {
|
|
9638
9638
|
method,
|