From f51f041b85d5e69baf339cb46c254cc152bc24cc Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 12 Jan 2012 18:40:25 -0500 Subject: [PATCH] webrick seems to need log write locations or things get weird --- lib/jasmine/headless/runner.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/jasmine/headless/runner.rb b/lib/jasmine/headless/runner.rb index 251ed08..12c50c9 100644 --- a/lib/jasmine/headless/runner.rb +++ b/lib/jasmine/headless/runner.rb @@ -141,7 +141,15 @@ module Jasmine end end - Rack::Handler::WEBrick.run(responder, :Port => server_port, :Logger => Logger.new(StringIO.new), :AccessLog => [ nil, nil ]) + Rack::Handler::WEBrick.run( + responder, + :Port => server_port, + :Logger => Logger.new(StringIO.new), + :AccessLog => [ + [ StringIO.new, WEBrick::AccessLog::COMMON_LOG_FORMAT ], + [ StringIO.new, WEBrick::AccessLog::REFERER_LOG_FORMAT ] + ] + ) end while true do