From 4843452be72ec7dc73c603658f41e33c4c266eff Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 26 Feb 2013 15:28:56 -0800 Subject: spit out the full callstack when -v2 --- lib/leap_cli/config/object.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') 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}'" -- cgit v1.2.3