If `--verbose` is given, debug the sh*t out of that.

This commit is contained in:
Parker Moore 2014-10-20 21:23:22 -07:00
parent 3dedcbf894
commit 5b37ad57cc
1 changed files with 5 additions and 1 deletions

View File

@ -84,7 +84,11 @@ module Jekyll
:StartCallback => start_callback(config['detach']) :StartCallback => start_callback(config['detach'])
} }
if !config['verbose'] if config['verbose']
opts.merge!({
:Logger => WEBrick::Log.new($stdout, WEBrick::Log::DEBUG)
})
else
opts.merge!({ opts.merge!({
:AccessLog => [], :AccessLog => [],
:Logger => WEBrick::Log.new([], WEBrick::Log::WARN) :Logger => WEBrick::Log.new([], WEBrick::Log::WARN)