lib/climatic/logger/wrapper.rb in climatic-0.2.29 vs lib/climatic/logger/wrapper.rb in climatic-0.2.30

- old
+ new

@@ -1,11 +1,15 @@ module Climatic module Logger module Wrapper - def puts_and_logs(*args) - puts *args if Climatic.config[:verbose] - info(*args) + def puts_and_logs(*args, logs_as: :info, check_verbose: true) + if check_verbose + puts *args if Climatic.config[:verbose] + else + puts *args + end + self.send logs_as, *args end end end end \ No newline at end of file