lib/sapience/rails/railtie.rb in sapience-0.2.14 vs lib/sapience/rails/railtie.rb in sapience-0.2.15
- old
+ new
@@ -2,10 +2,10 @@
module Sapience
module Rails
class Railtie < ::Rails::Railtie
config.before_configuration do
- Sapience.add_appender(:stream, io: STDOUT, level: :warn, formatter: :color)
+ Sapience.add_appender(:stream, io: STDOUT, level: :warn, formatter: :color) if Sapience.appenders.empty?
::Rails.logger = Sapience[::Rails]
end
end
end
end