lib/msgr/logging.rb in msgr-0.0.0 vs lib/msgr/logging.rb in msgr-0.1.0

- old
+ new

@@ -1,9 +1,9 @@ module Msgr module Logging def log(level) - Msgr.logger.send(level, self.log_name) { yield } + Msgr.logger.send(level, self.log_name) { yield } if Msgr.logger end def log_name "[#{Thread.current.object_id}] #{self.to_s}" end