mirror of https://github.com/grpc/grpc-node.git
grpc-js: Improve formatting of channelz logs for grpcdebug
This commit is contained in:
parent
f6dd4aad55
commit
bb2942197e
|
@ -477,9 +477,7 @@ export class InternalChannel {
|
||||||
if (this.channelzEnabled) {
|
if (this.channelzEnabled) {
|
||||||
this.channelzTrace.addTrace(
|
this.channelzTrace.addTrace(
|
||||||
'CT_INFO',
|
'CT_INFO',
|
||||||
ConnectivityState[this.connectivityState] +
|
'Connectivity state change to ' + ConnectivityState[newState]
|
||||||
' -> ' +
|
|
||||||
ConnectivityState[newState]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
this.connectivityState = newState;
|
this.connectivityState = newState;
|
||||||
|
|
|
@ -277,9 +277,7 @@ export class Subchannel {
|
||||||
if (this.channelzEnabled) {
|
if (this.channelzEnabled) {
|
||||||
this.channelzTrace.addTrace(
|
this.channelzTrace.addTrace(
|
||||||
'CT_INFO',
|
'CT_INFO',
|
||||||
ConnectivityState[this.connectivityState] +
|
'Connectivity state change to ' + ConnectivityState[newState]
|
||||||
' -> ' +
|
|
||||||
ConnectivityState[newState]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const previousState = this.connectivityState;
|
const previousState = this.connectivityState;
|
||||||
|
|
Loading…
Reference in New Issue