lib/zold/log.rb in zold-0.15.0 vs lib/zold/log.rb in zold-0.16.0

- old
+ new

@@ -52,19 +52,21 @@ @log = log @mutex = Mutex.new end def debug(msg) + return unless debug? @mutex.synchronize do @log.debug(msg) end end def debug? @log.debug? end def info(msg) + return unless info? @mutex.synchronize do @log.info(msg) end end