Log4r levels need to be defined before we can check for them

This commit is contained in:
Mitchell Hashimoto 2012-01-07 20:39:57 -08:00
parent 7954d4cba8
commit a94cf520c6
1 changed files with 3 additions and 0 deletions

View File

@ -2,7 +2,10 @@
# anything else so that we can setup the output before
# any logging occurs.
if ENV["VAGRANT_LOG"] && ENV["VAGRANT_LOG"] != ""
# Require Log4r and define the levels we'll be using
require 'log4r'
require 'log4r/config'
Log4r.define_levels(*Log4r::Log4rConfig::LogLevels)
level = nil
begin