aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-07 19:37:36 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-07 19:37:36 +0000
commit250cfdc0aae92fe4c69ed9afbd06d03360ec40b6 (patch)
tree0311051c839ec409476e5cfd45822a353d93cc98
parentdebe0485f0eae6a2fcedf6326c994a6e8cc60fb8 (diff)
downloadruby-250cfdc0aae92fe4c69ed9afbd06d03360ec40b6.tar.gz
* lib/webrick/cgi.rb (WEBrick::CGI#initialize): should create
@config[:Logger] if it was not given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/webrick/cgi.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9972a73ea3..54239473cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jan 8 04:36:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI#initialize): should create
+ @config[:Logger] if it was not given.
+
Wed Jan 7 22:28:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (glob_helper): fix memory leak.
diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb
index 31a65c1118..62c61f519a 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