Skip to content

Commit

Permalink
Merge pull request #2535 from murgatroid99/grpc-js_channelz_improvements
Browse files Browse the repository at this point in the history
grpc-js: Improve formatting of channelz logs for grpcdebug
  • Loading branch information
murgatroid99 authored Aug 8, 2023
2 parents 9ef4655 + bb29421 commit 7a8d463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/grpc-js/src/internal-channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions packages/grpc-js/src/subchannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a8d463

Please sign in to comment.