From 7dbc7d680a8971b5d9b72844b61f5ba154c7b845 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Fri, 11 Nov 2011 12:31:28 -0800 Subject: [PATCH] only silence thin when not debugging --- lib/middleman.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/middleman.rb b/lib/middleman.rb index 11d68f44..79a224a2 100755 --- a/lib/middleman.rb +++ b/lib/middleman.rb @@ -55,10 +55,6 @@ libdir = File.dirname(__FILE__) $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) -# Quiet down Thin -require "thin" -::Thin::Logging.silent = true - # We're riding on Sinatra, so let's include it. require "sinatra/base" @@ -200,6 +196,9 @@ module Middleman app_class = options[:app] ||= ::Middleman.server.new opts[:app] = app_class opts[:server] = 'thin' + + require "thin" + ::Thin::Logging.silent = true if options[:debug] != "true" server = ::Rack::Server.new(opts) server.start