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) {
|
||||
this.channelzTrace.addTrace(
|
||||
'CT_INFO',
|
||||
ConnectivityState[this.connectivityState] +
|
||||
' -> ' +
|
||||
ConnectivityState[newState]
|
||||
'Connectivity state change to ' + ConnectivityState[newState]
|
||||
);
|
||||
}
|
||||
this.connectivityState = newState;
|
||||
|
|
|
@ -277,9 +277,7 @@ export class Subchannel {
|
|||
if (this.channelzEnabled) {
|
||||
this.channelzTrace.addTrace(
|
||||
'CT_INFO',
|
||||
ConnectivityState[this.connectivityState] +
|
||||
' -> ' +
|
||||
ConnectivityState[newState]
|
||||
'Connectivity state change to ' + ConnectivityState[newState]
|
||||
);
|
||||
}
|
||||
const previousState = this.connectivityState;
|
||||
|
|
Loading…
Reference in New Issue