script/server in faraday-0.9.0.rc5 vs script/server in faraday-0.9.0.rc6
- old
+ new
@@ -4,18 +4,16 @@
require File.expand_path('../../test/live_server', __FILE__)
ensure
$VERBOSE = old_verbose
end
require 'webrick'
-require 'fileutils'
port = 4000
if found = ARGV.index('-p')
port = ARGV[found + 1].to_i
end
-FileUtils.mkdir_p('log')
-log_io = File.open('log/test.log', 'w')
+log_io = $stdout
log_io.sync = true
webrick_opts = {
:Port => port, :Logger => WEBrick::Log::new(log_io),
:AccessLog => [[log_io, "[%{X-Faraday-Adapter}i] %m %U -> %s %b"]]