diff options
author | elijah <elijah@riseup.net> | 2013-02-26 15:28:56 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-26 15:28:56 -0800 |
commit | 4843452be72ec7dc73c603658f41e33c4c266eff (patch) | |
tree | 655671e45bb8e964d903e5b7d502f46aedbd54a2 /lib | |
parent | 4be8c3890545e4eca743882807e9c8c375d00da6 (diff) | |
download | leap_cli-4843452be72ec7dc73c603658f41e33c4c266eff.tar.gz leap_cli-4843452be72ec7dc73c603658f41e33c4c266eff.tar.bz2 |
spit out the full callstack when -v2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/leap_cli/config/object.rb | 8 |
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}'" |