diff options
author | Tim Emiola <temiola@google.com> | 2015-08-18 16:15:14 -0700 |
---|---|---|
committer | Tim Emiola <temiola@google.com> | 2015-08-18 16:15:14 -0700 |
commit | 27ccd197c4e082cb4e210a117beaf716216a8846 (patch) | |
tree | f5cfe3d39c9c5d915299c13a6b3f9c7d04b2cff6 | |
parent | 7ff63f6abad6c49a7b88b036c54075a03433457c (diff) |
Corrects logconfig from #2956
-rw-r--r-- | src/ruby/lib/grpc/logconfig.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ruby/lib/grpc/logconfig.rb b/src/ruby/lib/grpc/logconfig.rb index 2bb7c86d5e..6b442febcb 100644 --- a/src/ruby/lib/grpc/logconfig.rb +++ b/src/ruby/lib/grpc/logconfig.rb @@ -54,5 +54,6 @@ module GRPC LOGGER = NoopLogger.new end - include DefaultLogger unless method_defined?(:logger) + # Inject the noop #logger if no module-level logger method has been injected. + extend DefaultLogger unless methods.include?(:logger) end |