micronodelib 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
package/dist/logging/logger.js
CHANGED
@@ -42,7 +42,8 @@ const winstonLogger = winston_1.default.createLogger({
|
|
42
42
|
request_id: (0, express_http_context_1.get)('reqId')
|
43
43
|
};
|
44
44
|
info.stacktrace = info.stack;
|
45
|
-
|
45
|
+
// @ts-ignore
|
46
|
+
delete info.message;
|
46
47
|
delete info.timestamp;
|
47
48
|
delete info.stack;
|
48
49
|
return info;
|
@@ -30,7 +30,8 @@ const requestLogMiddleware = function (opt) {
|
|
30
30
|
client_ip: req.headers['x-forwarded-for'] || (req.connection ? req.connection.remoteAddress : null),
|
31
31
|
user_agent: req.headers['user-agent']
|
32
32
|
};
|
33
|
-
|
33
|
+
// @ts-ignore
|
34
|
+
delete info.message;
|
34
35
|
delete info.timestamp;
|
35
36
|
delete info.meta;
|
36
37
|
return info;
|