aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-10-30 23:59:35 -0700
committerelijah <elijah@riseup.net>2014-10-30 23:59:35 -0700
commit1d7cba188444bdf65b7c5434699cfdb4bad24f73 (patch)
treed3bd4d33103a175d52b53e7c6a463b22b2f9abb8
parentb5046d33cedd32fba04b079fe674eab6c7e60532 (diff)
downloadleap_cli-1d7cba188444bdf65b7c5434699cfdb4bad24f73.tar.gz
leap_cli-1d7cba188444bdf65b7c5434699cfdb4bad24f73.tar.bz2
don't change log level to 3 when in bail!{} block
-rw-r--r--lib/leap_cli/util.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb
index 19930d2..43ff6f2 100644
--- a/lib/leap_cli/util.rb
+++ b/lib/leap_cli/util.rb
@@ -30,10 +30,7 @@ module LeapCli
#
def bail!(*message)
if block_given?
- level = LeapCli.log_level
- LeapCli.set_log_level(3)
yield
- LeapCli.set_log_level(level)
elsif message
log 0, *message
end