diff options
author | Nick Gauthier <ngauthier@gmail.com> | 2015-05-20 14:02:50 -0400 |
---|---|---|
committer | Nick Gauthier <ngauthier@gmail.com> | 2015-05-20 14:02:50 -0400 |
commit | f233d968d263b63f16f8f5a62c22ecad57ae8478 (patch) | |
tree | b722264d981ea4b07639c1c8ddf78e6a691fd91e /src/ruby/bin/apis | |
parent | a42c1fe8aeddff6e1fe13b7ee2d990999f2867c6 (diff) |
Encapsulate logger within GRPC module
Diffstat (limited to 'src/ruby/bin/apis')
-rwxr-xr-x | src/ruby/bin/apis/pubsub_demo.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ruby/bin/apis/pubsub_demo.rb b/src/ruby/bin/apis/pubsub_demo.rb index 6d69b0f21e..a039d036ac 100755 --- a/src/ruby/bin/apis/pubsub_demo.rb +++ b/src/ruby/bin/apis/pubsub_demo.rb @@ -79,7 +79,7 @@ end def publisher_stub(opts) address = "#{opts.host}:#{opts.port}" stub_clz = Tech::Pubsub::PublisherService::Stub # shorter - logger.info("... access PublisherService at #{address}") + GRPC.logger.info("... access PublisherService at #{address}") stub_clz.new(address, creds: ssl_creds, update_metadata: auth_proc(opts), GRPC::Core::Channel::SSL_TARGET => opts.host) @@ -89,7 +89,7 @@ end def subscriber_stub(opts) address = "#{opts.host}:#{opts.port}" stub_clz = Tech::Pubsub::SubscriberService::Stub # shorter - logger.info("... access SubscriberService at #{address}") + GRPC.logger.info("... access SubscriberService at #{address}") stub_clz.new(address, creds: ssl_creds, update_metadata: auth_proc(opts), GRPC::Core::Channel::SSL_TARGET => opts.host) |