mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-23 05:15:45 -04:00
add some extra diagnostics
This commit is contained in:
parent
9364194f36
commit
2203a4147d
1 changed files with 10 additions and 0 deletions
|
@ -93,3 +93,13 @@ if defined?(Rack::MiniProfiler)
|
|||
|
||||
# Rack::MiniProfiler.profile_method ActionView::PathResolver, 'find_templates'
|
||||
end
|
||||
|
||||
|
||||
if ENV["PRINT_EXCEPTIONS"]
|
||||
trace = TracePoint.new(:raise) do |tp|
|
||||
puts tp.raised_exception
|
||||
puts tp.raised_exception.backtrace.join("\n")
|
||||
puts
|
||||
end
|
||||
trace.enable
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue