lib/madvertise/boot.rb in madvertise-ext-0.9.1 vs lib/madvertise/boot.rb in madvertise-ext-0.9.2

- old
+ new

@@ -15,10 +15,13 @@ $log = MultiLogger.new $log.attach(ImprovedLogger.new(conf.log_backend.to_sym, File.basename($0))) $log.level = conf.log_level.downcase.to_sym $log.log_caller = conf.log_caller + + # sneak this in automatically + ZK.logger = $log if ::Module.const_defined?(:ZK) end reload_mixins = ->(conf) do if defined?(ROOT) config_yml = File.join(ROOT, 'config.yml') @@ -63,9 +66,10 @@ require 'active_support/all' require 'cgi' require 'date' require 'json' require 'socket' +require 'time' # load all madvertise extensions Dir[File.join(File.dirname(__FILE__), 'ext', '*.rb')].each do |f| require f end