aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/bin/math_server.rb
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-05-21 14:24:13 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-05-21 14:24:13 -0700
commit3d49461845469826246229d7e0b4510ae0ed9c3e (patch)
treed3120ef8f95ead78a0b711650865a7f3d23660b9 /src/ruby/bin/math_server.rb
parentbf6bd2303c2693373c4df161e11b6ce93f5d6ae3 (diff)
parentf99689ab774591c186310f01eefc8247481a3136 (diff)
Merge github.com:grpc/grpc into mmm-mmm-mmm-mmm
Diffstat (limited to 'src/ruby/bin/math_server.rb')
-rwxr-xr-xsrc/ruby/bin/math_server.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ruby/bin/math_server.rb b/src/ruby/bin/math_server.rb
index e46d9c671f..b41ccf6ce1 100755
--- a/src/ruby/bin/math_server.rb
+++ b/src/ruby/bin/math_server.rb
@@ -128,13 +128,13 @@ class Calculator < Math::Math::Service
t = Thread.new do
begin
requests.each do |req|
- logger.info("read #{req.inspect}")
+ GRPC.logger.info("read #{req.inspect}")
resp = Math::DivReply.new(quotient: req.dividend / req.divisor,
remainder: req.dividend % req.divisor)
q.push(resp)
Thread.pass # let the internal Bidi threads run
end
- logger.info('finished reads')
+ GRPC.logger.info('finished reads')
q.push(self)
rescue StandardError => e
q.push(e) # share the exception with the enumerator
@@ -176,10 +176,10 @@ def main
s = GRPC::RpcServer.new
if options['secure']
s.add_http2_port(options['host'], test_server_creds)
- logger.info("... running securely on #{options['host']}")
+ GRPC.logger.info("... running securely on #{options['host']}")
else
s.add_http2_port(options['host'])
- logger.info("... running insecurely on #{options['host']}")
+ GRPC.logger.info("... running insecurely on #{options['host']}")
end
s.handle(Calculator)