lib/multi_sync/logging.rb in multi_sync-0.0.1 vs lib/multi_sync/logging.rb in multi_sync-0.0.2

- old
+ new

@@ -1,6 +1,7 @@ require 'logger' +require 'thread' module MultiSync module Logging MUTEX = Mutex.new @@ -29,12 +30,11 @@ end end end def log(message, level = :debug) - # We're in verbose mode so disable all non-info logs + # We're not in verbose mode so disable all non-info logs return if !MultiSync.verbose && level != :info - MUTEX.synchronize do logger.send(level, message) end end