Skip to content

Commit bb29421

Browse files
committed
grpc-js: Improve formatting of channelz logs for grpcdebug
1 parent f6dd4aa commit bb29421

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/grpc-js/src/internal-channel.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,7 @@ export class InternalChannel {
477477
if (this.channelzEnabled) {
478478
this.channelzTrace.addTrace(
479479
'CT_INFO',
480-
ConnectivityState[this.connectivityState] +
481-
' -> ' +
482-
ConnectivityState[newState]
480+
'Connectivity state change to ' + ConnectivityState[newState]
483481
);
484482
}
485483
this.connectivityState = newState;

packages/grpc-js/src/subchannel.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ export class Subchannel {
277277
if (this.channelzEnabled) {
278278
this.channelzTrace.addTrace(
279279
'CT_INFO',
280-
ConnectivityState[this.connectivityState] +
281-
' -> ' +
282-
ConnectivityState[newState]
280+
'Connectivity state change to ' + ConnectivityState[newState]
283281
);
284282
}
285283
const previousState = this.connectivityState;

0 commit comments

Comments
 (0)