From: Eric Wong Date: Thu, 5 Aug 2010 08:46:04 +0000 (+0000) Subject: instaweb: add access+error logging for WEBrick X-Git-Tag: v1.7.3-rc0~93^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e9323e7f09d171739e8dbc9d60d77281caa06177?hp=f46e130439a57ce44708971183adab7e58512b34 instaweb: add access+error logging for WEBrick This allows WEBrick to support all the logging functionality in a manner consistent with the other web servers. Signed-off-by: Eric Wong --- diff --git a/git-instaweb.sh b/git-instaweb.sh index e69fb74fef..e6f6ecda17 100755 --- a/git-instaweb.sh +++ b/git-instaweb.sh @@ -216,9 +216,15 @@ EOF cat >"$fqgitdir/gitweb/$httpd.rb" < $port, :DocumentRoot => "$root", + :Logger => Logger.new('$fqgitdir/gitweb/error.log'), + :AccessLog => [ + [ Logger.new('$fqgitdir/gitweb/access.log'), + WEBrick::AccessLog::COMBINED_LOG_FORMAT ] + ], :DirectoryIndex => ["gitweb.cgi"], :CGIInterpreter => "$wrapper", :StartCallback => lambda do