lib/metatron.rb in metatron-0.4.1 vs lib/metatron.rb in metatron-0.4.2

- old
+ new

@@ -14,14 +14,12 @@ # The top-level module for Metatron module Metatron class Error < StandardError; end class ConfigError < Error; end - LOGGER = Logger.new($stdout) - - # Set up log level - LOGGER.level = ENV.fetch("LOG_LEVEL", :warn) + singleton_class.attr_accessor :logger + self.logger = Logger.new($stdout, level: ENV.fetch("LOG_LEVEL", :warn)) end # Internal requirements require "metatron/version" require "metatron/template" @@ -48,5 +46,6 @@ require "metatron/templates/service_account" require "metatron/templates/stateful_set" require "metatron/controller" require "metatron/sync_controller" require "metatron/controllers/ping" +require "metatron/railtie" if defined? Rails::Railtie