Merge pull request #427 from bhollis/windows

Log to NUL: in Windows
This commit is contained in:
Thomas Reynolds 2012-05-11 07:59:43 -07:00
commit 72cb264e39

View file

@ -146,7 +146,7 @@ module Middleman
opts[:app] = app_class
require "webrick"
opts[:Logger] = WEBrick::Log::new("/dev/null", 7) if !options[:logging]
opts[:Logger] = WEBrick::Log::new(RUBY_PLATFORM =~ /(mingw|bccwin|wince|mswin32)/i ? 'NUL:' : '/dev/null', 7) if !options[:logging]
opts[:server] = 'webrick'
server = ::Rack::Server.new(opts)
@ -370,4 +370,4 @@ module Middleman
end
end
end
end
end