./lib/le.rb in le-2.1.3 vs ./lib/le.rb in le-2.1.4
- old
+ new
@@ -2,16 +2,16 @@
require 'logger'
module Le
- def self.new(token, local=false)
+ def self.new(token, local=false, debug_level = Logger::DEBUG)
self.checkParams(token)
host = Le::Host.new(token, local)
logger = Logger.new(host)
- logger.level = Logger::DEBUG
+ logger.level = debug_level
if host.respond_to?(:formatter)
logger.formatter = host.formatter
end