summaryrefslogtreecommitdiffstats
path: root/lib/webrick
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-07 19:36:57 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-07 19:36:57 +0000
commitd95930b6a7bc33105a2fb6125f5452003f1076ba (patch)
treeaeee0ccdb8759f60e913369a28fb6989512e4bc2 /lib/webrick
parent946c7184cdc291177a806bb9cd9f771593a9b2e4 (diff)
downloadruby-d95930b6a7bc33105a2fb6125f5452003f1076ba.tar.gz
ruby-d95930b6a7bc33105a2fb6125f5452003f1076ba.tar.xz
ruby-d95930b6a7bc33105a2fb6125f5452003f1076ba.zip
* lib/webrick/cgi.rb (WEBrick::CGI#initialize): should create
@config[:Logger] if it was not given. * sample/webrick/*: new files. * MANIFEST: add sample/webrick/* git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
-rw-r--r--lib/webrick/cgi.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb
index 31a65c111..62c61f519 100644
--- a/lib/webrick/cgi.rb
+++ b/lib/webrick/cgi.rb
@@ -34,6 +34,7 @@ module WEBrick
if config = args.shift
@config.update(config)
end
+ @config[:Logger] ||= WEBrick::BasicLog.new($stderr)
@logger = @config[:Logger]
@options = args
end