lib/ramaze/log/logging.rb in Pistos-ramaze-2009.02 vs lib/ramaze/log/logging.rb in Pistos-ramaze-2009.04.08

- old
+ new

@@ -57,22 +57,16 @@ # Takes either an Exception or just a String, formats backtraces to be a bit # more readable and passes all of this on to tag_log :error def error(ex) if ex.respond_to?(:exception) - message = [ex.backtrace].flatten[0..Global.backtrace_size] - message.map{|m| m.to_s.gsub(/^#{Regexp.escape(Dir.pwd)}/, '.') } + message = ex.backtrace + message.map!{|m| m.to_s.gsub(/^#{Regexp.escape(Dir.pwd)}/, '.') } message.unshift(ex.inspect) else message = ex.to_s end tag_log(:error, :to_s, *message) - end - - # raises - - def log(*args) - raise "#log should be implemented by an instance including this module (#{self})" end # nothing def shutdown