Skip to content

Commit

Permalink
Merge pull request #1781 from murgatroid99/grpc-js_verbosity_case_ins…
Browse files Browse the repository at this point in the history
…ensitive

grpc-js: Make GRPC_VERBOSITY accept lower-case values
  • Loading branch information
murgatroid99 committed May 11, 2021
2 parents d82b1a3 + cc0c8de commit 502becb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-js/src/logging.ts
Expand Up @@ -22,7 +22,7 @@ let _logVerbosity: LogVerbosity = LogVerbosity.ERROR;

const verbosityString = process.env.GRPC_NODE_VERBOSITY ?? process.env.GRPC_VERBOSITY ?? '';

switch (verbosityString) {
switch (verbosityString.toUpperCase()) {
case 'DEBUG':
_logVerbosity = LogVerbosity.DEBUG;
break;
Expand Down

0 comments on commit 502becb

Please sign in to comment.