micronodelib 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- info.message = null;
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
- info.message = null;
33
+ // @ts-ignore
34
+ delete info.message;
34
35
  delete info.timestamp;
35
36
  delete info.meta;
36
37
  return info;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micronodelib",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Common core for NodeJs project",
5
5
  "author": "Thang Bui",
6
6
  "license": "MIT",