diff options
author | Andre Arko <andre@arko.net> | 2014-07-23 12:31:46 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-07-23 12:31:51 -0700 |
commit | 195aae8ba0eeb4eac42f12331c0a375542a217b2 (patch) | |
tree | fe9d2cb512019fad929cb83c6df1ce4f8198907e | |
parent | 50b287627627173d160d5887271af5419a6ecfb9 (diff) | |
download | bundler-195aae8ba0eeb4eac42f12331c0a375542a217b2.tar.gz |
clean up UI#trace method
-rw-r--r-- | lib/bundler/ui/shell.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/bundler/ui/shell.rb b/lib/bundler/ui/shell.rb index d2c00529e1..c7054e4e0a 100644 --- a/lib/bundler/ui/shell.rb +++ b/lib/bundler/ui/shell.rb @@ -56,12 +56,9 @@ module Bundler 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 |