]> git.openstreetmap.org Git - rails.git/commitdiff
Disable logging when --silent is used
authorKai Krueger <kakrueger@gmail.com>
Sun, 5 Dec 2010 16:20:59 +0000 (16:20 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 5 Dec 2010 16:20:59 +0000 (16:20 +0000)
vendor/gems/rots-0.2.1/bin/rots

index 726c65581f697afaa794f42fd644c6e958bd2a54..27178d89d4932b4a23442e89186e455b5a7cd1b8 100755 (executable)
@@ -91,5 +91,9 @@ puts "\x1B[32mRunning OpenID Test server on port 1123\x1B[0m" if server_options[
 begin 
   Rack::Handler::Mongrel.run server, :Port => server_options[:port]
 rescue LoadError
-  Rack::Handler::WEBrick.run server, :Port => server_options[:port]
+  if server_options[:verbose]
+    Rack::Handler::WEBrick.run server, :Port => server_options[:port]
+  else
+    Rack::Handler::WEBrick.run server, :Port => server_options[:port], :AccessLog => [], :Logger => WEBrick::Log::new("/dev/null", 7)
+  end
 end