diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-27 07:03:29 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-27 07:03:29 +0000 |
commit | 6671baa96b2921e2cdaeb4ca4a16bcd05f5e45ff (patch) | |
tree | fe2fa61702c537812d58f103f9d353ebef51d6c7 /lib/soap/rpc/standaloneServer.rb | |
parent | eb4ace3c49b2834b38c7f79bbd8ca3e6ee6e1c3a (diff) | |
download | ruby-6671baa96b2921e2cdaeb4ca4a16bcd05f5e45ff.tar.gz |
* lib/soap/rpc/cgistub.rb: make logging severity threshold higher.
* lib/soap/rpc/standaloneServer.rb: defer WEBrick server start to give a change
to reset logging severity threshold.
* test/soap/calc/test_*, test/soap/helloworld/test_helloworld.rb: run silent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/soap/rpc/standaloneServer.rb')
-rw-r--r-- | lib/soap/rpc/standaloneServer.rb | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/soap/rpc/standaloneServer.rb b/lib/soap/rpc/standaloneServer.rb index bc8ab18f4c..346d6e196b 100644 --- a/lib/soap/rpc/standaloneServer.rb +++ b/lib/soap/rpc/standaloneServer.rb @@ -50,18 +50,12 @@ class StandaloneServer < Logger::Application def initialize(app_name, namespace, host = "0.0.0.0", port = 8080) super(app_name) - @logdev = Logger.new(STDERR) - @logdev.level = INFO @namespace = namespace - @server = WEBrick::HTTPServer.new( - :BindAddress => host, - :Logger => logdev, - :AccessLog => [[logdev, WEBrick::AccessLog::COMBINED_LOG_FORMAT]], - :Port => port - ) + @host = host + @port = port + @server = nil @soaplet = ::SOAP::RPC::SOAPlet.new on_init - @server.mount('/', @soaplet) end def on_init @@ -107,6 +101,13 @@ class StandaloneServer < Logger::Application private def run + @server = WEBrick::HTTPServer.new( + :BindAddress => @host, + :Logger => @log, + :AccessLog => [], + :Port => @port + ) + @server.mount('/', @soaplet) @server.start end end |