micronodelib 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
package/dist/logging/logger.js
CHANGED
@@ -37,7 +37,7 @@ const winstonLogger = winston_1.default.createLogger({
|
|
37
37
|
format: (0, configuration_1.formatter)(info => {
|
38
38
|
info.level = info.level.toUpperCase();
|
39
39
|
info.msg = info.message;
|
40
|
-
info.ts = Date.parse(info.timestamp) / 1000;
|
40
|
+
info.ts = Math.round(Date.parse(info.timestamp) / 1000);
|
41
41
|
info.request_meta = {
|
42
42
|
request_id: (0, express_http_context_1.get)('reqId')
|
43
43
|
};
|
@@ -15,7 +15,7 @@ const requestLogMiddleware = function (opt) {
|
|
15
15
|
const req = info.meta.req;
|
16
16
|
info.level = info.level.toUpperCase();
|
17
17
|
info.msg = info.message;
|
18
|
-
info.ts = Date.parse(info.timestamp) / 1000;
|
18
|
+
info.ts = Math.round(Date.parse(info.timestamp) / 1000);
|
19
19
|
info.request_meta = {
|
20
20
|
status: info.meta.res.statusCode,
|
21
21
|
execution_time: info.meta.responseTime,
|