lib/infrataster.rb in infrataster-0.1.0 vs lib/infrataster.rb in infrataster-0.1.1

- old
+ new

@@ -1,12 +1,16 @@ require "infrataster/version" -require "infrataster/types" +require "infrataster/resources" require "infrataster/server" require "infrataster/helpers" require "infrataster/browsermob_proxy" require "infrataster/contexts" require 'logger' module Infrataster Logger = ::Logger.new($stdout) - Logger.level = ::Logger::ERROR + if ENV['INFRATASTER_LOG'] + Logger.level = ::Logger.const_get(ENV['INFRATASTER_LOG'].upcase) + else + Logger.level = ::Logger::ERROR + end end