summaryrefslogtreecommitdiff
path: root/lib/leap_cli/config
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-02-26 15:28:56 -0800
committerelijah <elijah@riseup.net>2013-02-26 15:28:56 -0800
commit4843452be72ec7dc73c603658f41e33c4c266eff (patch)
tree655671e45bb8e964d903e5b7d502f46aedbd54a2 /lib/leap_cli/config
parent4be8c3890545e4eca743882807e9c8c375d00da6 (diff)
spit out the full callstack when -v2
Diffstat (limited to 'lib/leap_cli/config')
-rw-r--r--lib/leap_cli/config/object.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb
index 6f30fe9..b8b3c38 100644
--- a/lib/leap_cli/config/object.rb
+++ b/lib/leap_cli/config/object.rb
@@ -393,6 +393,14 @@ module LeapCli
end
def evaluate_now(key, value)
+ if LeapCli.log_level >= 2
+ @node.instance_eval(value)
+ else
+ evaluate_now!(key, value)
+ end
+ end
+
+ def evaluate_now!(key, value)
return @node.instance_eval(value)
rescue SystemStackError => exc
Util::log 0, :error, "while evaluating node '#{@node.name}'"