grpc-js: Add tracing of channel options in channel and subchannel constructors

This commit is contained in:
Michael Lumish 2021-10-12 12:06:20 -07:00
parent e876b529b3
commit 897df7d7bb
3 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@grpc/grpc-js",
"version": "1.3.7",
"version": "1.3.8",
"description": "gRPC Library for Node - pure JS implementation",
"homepage": "https://grpc.io/",
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",

View File

@ -290,6 +290,7 @@ export class ChannelImplementation implements Channel {
new MaxMessageSizeFilterFactory(this.options),
new CompressionFilterFactory(this),
]);
trace(LogVerbosity.DEBUG, 'channel', 'Channel constructed with options ' + JSON.stringify(options, undefined, 2));
}
private callRefTimerRef() {

View File

@ -247,6 +247,7 @@ export class Subchannel {
this.handleBackoffTimer();
}, backoffOptions);
this.subchannelAddressString = subchannelAddressToString(subchannelAddress);
trace('Subchannel constructed with options ' + JSON.stringify(options, undefined, 2));
}
private handleBackoffTimer() {