@nocobase/server 1.8.32 → 1.8.33

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.
@@ -169,7 +169,15 @@ const _Gateway = class _Gateway extends import_events.EventEmitter {
169
169
  res.end(JSON.stringify({ error }));
170
170
  }
171
171
  responseErrorWithCode(code, res, options) {
172
+ const log = this.getLogger(options.appName, res);
172
173
  const error = (0, import_errors.applyErrorWithArgs)((0, import_errors.getErrorWithCode)(code), options);
174
+ log.error(error.message, {
175
+ method: "responseErrorWithCode",
176
+ code,
177
+ error,
178
+ statusCode: res.statusCode,
179
+ appName: options.appName
180
+ });
173
181
  this.responseError(res, error);
174
182
  }
175
183
  async requestHandler(req, res) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "1.8.32",
3
+ "version": "1.8.33",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -10,19 +10,19 @@
10
10
  "@koa/cors": "^5.0.0",
11
11
  "@koa/multer": "^3.1.0",
12
12
  "@koa/router": "^13.1.0",
13
- "@nocobase/acl": "1.8.32",
14
- "@nocobase/actions": "1.8.32",
15
- "@nocobase/auth": "1.8.32",
16
- "@nocobase/cache": "1.8.32",
17
- "@nocobase/data-source-manager": "1.8.32",
18
- "@nocobase/database": "1.8.32",
19
- "@nocobase/evaluators": "1.8.32",
20
- "@nocobase/lock-manager": "1.8.32",
21
- "@nocobase/logger": "1.8.32",
22
- "@nocobase/resourcer": "1.8.32",
23
- "@nocobase/sdk": "1.8.32",
24
- "@nocobase/telemetry": "1.8.32",
25
- "@nocobase/utils": "1.8.32",
13
+ "@nocobase/acl": "1.8.33",
14
+ "@nocobase/actions": "1.8.33",
15
+ "@nocobase/auth": "1.8.33",
16
+ "@nocobase/cache": "1.8.33",
17
+ "@nocobase/data-source-manager": "1.8.33",
18
+ "@nocobase/database": "1.8.33",
19
+ "@nocobase/evaluators": "1.8.33",
20
+ "@nocobase/lock-manager": "1.8.33",
21
+ "@nocobase/logger": "1.8.33",
22
+ "@nocobase/resourcer": "1.8.33",
23
+ "@nocobase/sdk": "1.8.33",
24
+ "@nocobase/telemetry": "1.8.33",
25
+ "@nocobase/utils": "1.8.33",
26
26
  "@types/decompress": "4.2.7",
27
27
  "@types/ini": "^1.3.31",
28
28
  "@types/koa-send": "^4.1.3",
@@ -57,5 +57,5 @@
57
57
  "@types/serve-handler": "^6.1.1",
58
58
  "@types/ws": "^8.5.5"
59
59
  },
60
- "gitHead": "288319f91c6f184aa9def02a6c8fcaea33326094"
60
+ "gitHead": "0aa6b2823a7fe1d674f79512d9beaff96b647214"
61
61
  }