@riocrypto/common-server 1.0.1718 → 1.0.1720

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.
@@ -87,14 +87,13 @@ class LoggerService {
87
87
  initLogger() {
88
88
  return __awaiter(this, void 0, void 0, function* () {
89
89
  if (process.env.RIO_ENV === common_1.RioEnv.Production) {
90
- const { getWinstonTransport } = yield require("@hyperdx/node-opentelemetry");
90
+ const { getWinsonTransport } = yield require("@hyperdx/node-opentelemetry");
91
91
  this.logger = (0, winston_1.createLogger)({
92
92
  level: "info",
93
93
  format: winston_1.format.combine(winston_1.format.timestamp(), this.maskSensitiveData(), winston_1.format.json(), winston_1.format.prettyPrint()),
94
94
  transports: [
95
95
  new winston_1.transports.Console(),
96
- //@ts-ignore
97
- getWinstonTransport("info", {
96
+ getWinsonTransport("info", {
98
97
  apiKey: process.env.HYPERDX_API_KEY,
99
98
  service: process.env.OTEL_SERVICE_NAME,
100
99
  }),
@@ -103,7 +102,7 @@ class LoggerService {
103
102
  }
104
103
  else {
105
104
  this.logger = (0, winston_1.createLogger)({
106
- level: "info",
105
+ level: "error",
107
106
  format: winston_1.format.combine(winston_1.format.timestamp(), this.maskSensitiveData(), winston_1.format.json(), winston_1.format.metadata(), winston_1.format.prettyPrint()),
108
107
  transports: [new winston_1.transports.Console()],
109
108
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1718",
3
+ "version": "1.0.1720",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",