lib/stealth/logger.rb in stealth-0.10.2 vs lib/stealth/logger.rb in stealth-0.10.3

- old
+ new

@@ -3,10 +3,12 @@ module Stealth class Logger def self.log(topic:, message:) - puts "[#{topic.upcase}] #{message}" + unless ENV['STEALTH_ENV'] == 'test' + puts "[#{topic.upcase}] #{message}" + end end class << self alias_method :l, :log end