aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/bin/apis
diff options
context:
space:
mode:
authorGravatar Nick Gauthier <ngauthier@gmail.com>2015-05-20 14:02:50 -0400
committerGravatar Nick Gauthier <ngauthier@gmail.com>2015-05-20 14:02:50 -0400
commitf233d968d263b63f16f8f5a62c22ecad57ae8478 (patch)
treeb722264d981ea4b07639c1c8ddf78e6a691fd91e /src/ruby/bin/apis
parenta42c1fe8aeddff6e1fe13b7ee2d990999f2867c6 (diff)
Encapsulate logger within GRPC module
Diffstat (limited to 'src/ruby/bin/apis')
-rwxr-xr-xsrc/ruby/bin/apis/pubsub_demo.rb4
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)