Skip to content

Commit

Permalink
Merge pull request #1858 from murgatroid99/grpc-js_log_version
Browse files Browse the repository at this point in the history
grpc-js: Add trace log with library version
  • Loading branch information
murgatroid99 committed Jul 19, 2021
2 parents e64adfa + 6ae2ed4 commit 4d69637
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/grpc-js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ export { experimental };
import * as resolver from './resolver';
import * as load_balancer from './load-balancer';

const clientVersion = require('../../package.json').version;

(() => {
logging.trace(LogVerbosity.DEBUG, 'index', 'Loading @grpc/grpc-js version ' + clientVersion);
resolver.registerAll();
load_balancer.registerAll();
})();

0 comments on commit 4d69637

Please sign in to comment.