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.

Parameters:

  • e (Exception)

    The raised exception.



110
111
112
113
114
115
116
# File 'lib/souffle/application.rb', line 110

def debug_stacktrace(e)
  message = "#{e.class}: #{e}\n#{e.backtrace.join("\n")}"
  stacktrace_out = "Generated at #{Time.now.to_s}\n"
  stacktrace_out += message

  Souffle::Log.debug(message)
end