diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-01-30 17:13:55 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-30 17:13:55 -0600 |
commit | 880f3de64aec52d9ad97f09ae4655e0b296b1a6c (patch) | |
tree | e0bca7f8b181ee7d260ef871c8ad035637fc9b4e /lib/bundler | |
parent | 00e965d22a2146a072481fc72dfc1cf28c853876 (diff) | |
download | bundler-880f3de64aec52d9ad97f09ae4655e0b296b1a6c.tar.gz |
[Resolver] Determine debug mode onceseg-debug-once
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/resolver.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb index 82dcd7fbfd..a10c03b0f6 100644 --- a/lib/bundler/resolver.rb +++ b/lib/bundler/resolver.rb @@ -224,7 +224,8 @@ module Bundler end def debug? - ENV["DEBUG_RESOLVER"] || ENV["DEBUG_RESOLVER_TREE"] + return @debug_mode if defined?(@debug_mode) + @debug_mode = ENV["DEBUG_RESOLVER"] || ENV["DEBUG_RESOLVER_TREE"] end def before_resolution |