mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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'
|
# Rack::MiniProfiler.profile_method ActionView::PathResolver, 'find_templates'
|
||||||
end
|
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 New Issue
Block a user