lib/orchestrator/logger.rb in orchestrator-1.0.2 vs lib/orchestrator/logger.rb in orchestrator-1.0.3

- old
+ new

@@ -85,12 +85,13 @@ if @level <= 4 log(:fatal, msg) end end - def print_error(e, msg = '') + def print_error(e, msg = '', trace = nil) msg << "\n#{e.message}" msg << "\n#{e.backtrace.join("\n")}" if e.respond_to?(:backtrace) && e.backtrace + msg << "\nCaller backtrace:\n#{trace.join("\n")}" if trace error(msg) end protected