From 478691c596afe01f6d051fe202928d812943b7e6 Mon Sep 17 00:00:00 2001 From: Kai Krueger Date: Sun, 5 Dec 2010 16:20:59 +0000 Subject: [PATCH] Disable logging when --silent is used --- vendor/gems/rots-0.2.1/bin/rots | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vendor/gems/rots-0.2.1/bin/rots b/vendor/gems/rots-0.2.1/bin/rots index 726c65581..27178d89d 100755 --- a/vendor/gems/rots-0.2.1/bin/rots +++ b/vendor/gems/rots-0.2.1/bin/rots @@ -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 -- 2.39.5