lib/bundler/ui/shell.rb in bundler-1.6.4 vs lib/bundler/ui/shell.rb in bundler-1.6.5

- old
+ new

@@ -54,15 +54,12 @@ def level(name = nil) name ? LEVELS.index(name) <= LEVELS.index(@level) : @level end def trace(e, newline = nil) + return unless debug? msg = ["#{e.class}: #{e.message}", *e.backtrace].join("\n") - if debug? - tell_me(msg, nil, newline) - elsif @trace - STDERR.puts "#{msg}#{newline}" - end + tell_me(msg, nil, newline) end def silence old_level, @level = @level, "silent" yield