diff options
author | Tim Emiola <tbetbetbe@users.noreply.github.com> | 2015-05-20 19:01:31 -0700 |
---|---|---|
committer | Tim Emiola <tbetbetbe@users.noreply.github.com> | 2015-05-20 19:01:31 -0700 |
commit | 3a303361e693be54db6a5d80248f32e8484de00e (patch) | |
tree | 7050a1eb3bb49a6ed285ea4d45e034b123ef9a05 /src/ruby/bin/noproto_client.rb | |
parent | e1c24fcd0cb885360bf85cdb2dbee7e31c30fd16 (diff) | |
parent | f233d968d263b63f16f8f5a62c22ecad57ae8478 (diff) |
Merge pull request #1676 from codeship/ngauthier-encapsulate-logging
Encapsulate logger within GRPC module
Diffstat (limited to 'src/ruby/bin/noproto_client.rb')
-rwxr-xr-x | src/ruby/bin/noproto_client.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ruby/bin/noproto_client.rb b/src/ruby/bin/noproto_client.rb index f3fd110347..390a9c59c3 100755 --- a/src/ruby/bin/noproto_client.rb +++ b/src/ruby/bin/noproto_client.rb @@ -94,15 +94,15 @@ def main p stub_opts p options['host'] stub = NoProtoStub.new(options['host'], **stub_opts) - logger.info("... connecting securely on #{options['host']}") + GRPC.logger.info("... connecting securely on #{options['host']}") else stub = NoProtoStub.new(options['host']) - logger.info("... connecting insecurely on #{options['host']}") + GRPC.logger.info("... connecting insecurely on #{options['host']}") end - logger.info('sending a NoProto rpc') + GRPC.logger.info('sending a NoProto rpc') resp = stub.an_rpc(NoProtoMsg.new) - logger.info("got a response: #{resp}") + GRPC.logger.info("got a response: #{resp}") end main |