lib/berkshelf/logger.rb in berkshelf-3.0.0.beta2 vs lib/berkshelf/logger.rb in berkshelf-3.0.0.beta3

- old
+ new

@@ -1,9 +1,12 @@ module Berkshelf - Logger = Celluloid::Logger.dup + Logger = Ridley.logger - Logger.module_eval do - def self.fatal(string) - error(string) + Logger.class.class_eval do + alias_method :fatal, :error + + def deprecate(message) + trace = caller.join("\n\t") + warn "DEPRECATION WARNING: #{message}\n\t#{trace}" end end end