Skip to content

Commit d8d478d

Browse files
committedSep 28, 2022
## [3.4.6] - 2022-09-28
### Fixed - Fixed issue that `logLevel` not works
1 parent 7d91b04 commit d8d478d

File tree

4 files changed

+239
-262
lines changed

4 files changed

+239
-262
lines changed
 

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## [3.4.6] - 2022-09-28
4+
### Fixed
5+
- Fixed issue that `logLevel` not works
6+
37
## [3.4.5] - 2022-08-10
48
### Fixed
59
- Ignore incoming data after heartbeat timeout

‎package-lock.json

+222-251
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tsrpc",
3-
"version": "3.4.5",
3+
"version": "3.4.6",
44
"description": "A TypeScript RPC Framework, with runtime type checking and built-in serialization, support both HTTP and WebSocket.",
55
"main": "index.js",
66
"exports": {
@@ -38,27 +38,27 @@
3838
"author": "k8w",
3939
"license": "MIT",
4040
"devDependencies": {
41-
"@microsoft/api-documenter": "^7.19.4",
42-
"@microsoft/api-extractor": "^7.29.2",
41+
"@microsoft/api-documenter": "^7.19.15",
42+
"@microsoft/api-extractor": "^7.31.2",
4343
"@types/chai": "^4.3.3",
4444
"@types/mocha": "^8.2.3",
4545
"@types/node": "^15.14.9",
4646
"@types/uuid": "^8.3.4",
4747
"chai": "^4.3.6",
4848
"mocha": "^9.2.2",
49-
"mongodb": "^4.8.1",
49+
"mongodb": "^4.10.0",
5050
"nyc": "^15.1.0",
51-
"rollup": "^2.77.2",
52-
"rollup-plugin-typescript2": "^0.32.1",
51+
"rollup": "^2.79.1",
52+
"rollup-plugin-typescript2": "^0.34.0",
5353
"ts-node": "^10.9.1",
54-
"typescript": "^4.7.4"
54+
"typescript": "^4.8.4"
5555
},
5656
"dependencies": {
5757
"@types/ws": "^7.4.7",
5858
"chalk": "^4.1.2",
59-
"tsbuffer": "^2.2.3",
60-
"tsrpc-base-client": "^2.1.4",
61-
"tsrpc-proto": "^1.4.2",
59+
"tsbuffer": "^2.2.4",
60+
"tsrpc-base-client": "^2.1.6",
61+
"tsrpc-proto": "^1.4.3",
6262
"uuid": "^8.3.2",
6363
"ws": "^7.5.9"
6464
},

‎src/server/base/BaseServer.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ export abstract class BaseServer<ServiceType extends BaseServiceType = BaseServi
173173
});
174174
this.serviceMap = ServiceMapUtil.getServiceMap(proto);
175175
this.logger = this.options.logger;
176-
setLogLevel(this.logger, this.options.logLevel);
176+
if (this.logger) {
177+
this.logger = setLogLevel(this.logger, this.options.logLevel);
178+
}
177179

178180
// Process uncaught exception, so that Node.js process would not exit easily
179181
BaseServer.processUncaughtException(this.logger);

0 commit comments

Comments
 (0)
Please sign in to comment.