Method: Souffle::Application.debug_stacktrace
- Defined in:
- lib/souffle/application.rb
.debug_stacktrace(e) ⇒ Object
Present a debug stracktrace upon an error. Gives a readable backtrace with a timestamp.
110 111 112 113 114 115 116 |
# File 'lib/souffle/application.rb', line 110 def debug_stacktrace(e) = "#{e.class}: #{e}\n#{e.backtrace.join("\n")}" stacktrace_out = "Generated at #{Time.now.to_s}\n" stacktrace_out += Souffle::Log.debug() end |