mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
only silence thin when not debugging
This commit is contained in:
parent
cd63ec2248
commit
7dbc7d680a
1 changed files with 3 additions and 4 deletions
|
@ -55,10 +55,6 @@
|
||||||
libdir = File.dirname(__FILE__)
|
libdir = File.dirname(__FILE__)
|
||||||
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
$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.
|
# We're riding on Sinatra, so let's include it.
|
||||||
require "sinatra/base"
|
require "sinatra/base"
|
||||||
|
|
||||||
|
@ -201,6 +197,9 @@ module Middleman
|
||||||
opts[:app] = app_class
|
opts[:app] = app_class
|
||||||
opts[:server] = 'thin'
|
opts[:server] = 'thin'
|
||||||
|
|
||||||
|
require "thin"
|
||||||
|
::Thin::Logging.silent = true if options[:debug] != "true"
|
||||||
|
|
||||||
server = ::Rack::Server.new(opts)
|
server = ::Rack::Server.new(opts)
|
||||||
server.start
|
server.start
|
||||||
server
|
server
|
||||||
|
|
Loading…
Reference in a new issue