@nocobase/server 1.3.35-beta → 1.3.36-beta
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.
- package/lib/application.d.ts +2 -1
- package/lib/application.js +7 -4
- package/package.json +14 -14
package/lib/application.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ export declare class Application<StateT = DefaultState, ContextT = DefaultContex
|
|
|
162
162
|
*/
|
|
163
163
|
syncManager: SyncManager;
|
|
164
164
|
requestLogger: Logger;
|
|
165
|
-
private
|
|
165
|
+
private _sqlLogger;
|
|
166
166
|
protected _logger: SystemLogger;
|
|
167
167
|
constructor(options: ApplicationOptions);
|
|
168
168
|
/**
|
|
@@ -170,6 +170,7 @@ export declare class Application<StateT = DefaultState, ContextT = DefaultContex
|
|
|
170
170
|
*/
|
|
171
171
|
get started(): Date;
|
|
172
172
|
get logger(): SystemLogger;
|
|
173
|
+
get sqlLogger(): Logger;
|
|
173
174
|
get log(): SystemLogger;
|
|
174
175
|
protected _loaded: boolean;
|
|
175
176
|
/**
|
package/lib/application.js
CHANGED
|
@@ -120,7 +120,7 @@ const _Application = class _Application extends import_koa.default {
|
|
|
120
120
|
*/
|
|
121
121
|
syncManager;
|
|
122
122
|
requestLogger;
|
|
123
|
-
|
|
123
|
+
_sqlLogger;
|
|
124
124
|
_logger;
|
|
125
125
|
/**
|
|
126
126
|
* @experimental
|
|
@@ -131,6 +131,9 @@ const _Application = class _Application extends import_koa.default {
|
|
|
131
131
|
get logger() {
|
|
132
132
|
return this._logger;
|
|
133
133
|
}
|
|
134
|
+
get sqlLogger() {
|
|
135
|
+
return this._sqlLogger;
|
|
136
|
+
}
|
|
134
137
|
get log() {
|
|
135
138
|
return this._logger;
|
|
136
139
|
}
|
|
@@ -775,7 +778,7 @@ const _Application = class _Application extends import_koa.default {
|
|
|
775
778
|
filename: "request",
|
|
776
779
|
...(options == null ? void 0 : options.request) || {}
|
|
777
780
|
});
|
|
778
|
-
this.
|
|
781
|
+
this._sqlLogger = this.createLogger({
|
|
779
782
|
filename: "sql",
|
|
780
783
|
level: "debug"
|
|
781
784
|
});
|
|
@@ -784,7 +787,7 @@ const _Application = class _Application extends import_koa.default {
|
|
|
784
787
|
var _a, _b, _c;
|
|
785
788
|
(_a = this.log) == null ? void 0 : _a.close();
|
|
786
789
|
(_b = this.requestLogger) == null ? void 0 : _b.close();
|
|
787
|
-
(_c = this.
|
|
790
|
+
(_c = this._sqlLogger) == null ? void 0 : _c.close();
|
|
788
791
|
}
|
|
789
792
|
init() {
|
|
790
793
|
const options = this.options;
|
|
@@ -864,7 +867,7 @@ const _Application = class _Application extends import_koa.default {
|
|
|
864
867
|
if (msg.includes("INSERT INTO")) {
|
|
865
868
|
msg = msg.substring(0, 2e3) + "...";
|
|
866
869
|
}
|
|
867
|
-
this.
|
|
870
|
+
this._sqlLogger.debug({ message: msg, app: this.name, reqId: this.context.reqId });
|
|
868
871
|
}, "logging");
|
|
869
872
|
const dbOptions = options.database instanceof import_database.default ? options.database.options : options.database;
|
|
870
873
|
const db = new import_database.default({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.36-beta",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
"@koa/cors": "^3.1.0",
|
|
11
11
|
"@koa/multer": "^3.0.2",
|
|
12
12
|
"@koa/router": "^9.4.0",
|
|
13
|
-
"@nocobase/acl": "1.3.
|
|
14
|
-
"@nocobase/actions": "1.3.
|
|
15
|
-
"@nocobase/auth": "1.3.
|
|
16
|
-
"@nocobase/cache": "1.3.
|
|
17
|
-
"@nocobase/data-source-manager": "1.3.
|
|
18
|
-
"@nocobase/database": "1.3.
|
|
19
|
-
"@nocobase/evaluators": "1.3.
|
|
20
|
-
"@nocobase/logger": "1.3.
|
|
21
|
-
"@nocobase/resourcer": "1.3.
|
|
22
|
-
"@nocobase/sdk": "1.3.
|
|
23
|
-
"@nocobase/telemetry": "1.3.
|
|
24
|
-
"@nocobase/utils": "1.3.
|
|
13
|
+
"@nocobase/acl": "1.3.36-beta",
|
|
14
|
+
"@nocobase/actions": "1.3.36-beta",
|
|
15
|
+
"@nocobase/auth": "1.3.36-beta",
|
|
16
|
+
"@nocobase/cache": "1.3.36-beta",
|
|
17
|
+
"@nocobase/data-source-manager": "1.3.36-beta",
|
|
18
|
+
"@nocobase/database": "1.3.36-beta",
|
|
19
|
+
"@nocobase/evaluators": "1.3.36-beta",
|
|
20
|
+
"@nocobase/logger": "1.3.36-beta",
|
|
21
|
+
"@nocobase/resourcer": "1.3.36-beta",
|
|
22
|
+
"@nocobase/sdk": "1.3.36-beta",
|
|
23
|
+
"@nocobase/telemetry": "1.3.36-beta",
|
|
24
|
+
"@nocobase/utils": "1.3.36-beta",
|
|
25
25
|
"@types/decompress": "4.2.7",
|
|
26
26
|
"@types/ini": "^1.3.31",
|
|
27
27
|
"@types/koa-send": "^4.1.3",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"@types/serve-handler": "^6.1.1",
|
|
55
55
|
"@types/ws": "^8.5.5"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "c220ce1036f651eb23deb91246d7f84b046074b6"
|
|
58
58
|
}
|