mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 15:59:29 +08:00
add some extra diagnostics
This commit is contained in:
parent
9364194f36
commit
2203a4147d
@ -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…
x
Reference in New Issue
Block a user