Skip to content

A platform for community discussion. Free, open, simple.

DEV: Log backtrace along with the error (#27242)

Alan Guo Xiang Tanf76d1439197b
diff --git a/lib/discourse.rb b/lib/discourse.rb
index 96946422511..2f910cf081a 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -943,7 +943,7 @@ module Discourse
# Skip warmup in development mode - it makes boot take ~2s longer
PrettyText.cook("warm up **pretty text**") if !Rails.env.development?
rescue => e
- Rails.logger.error("Failed to warm up pretty text: #{e}")
+ Rails.logger.error("Failed to warm up pretty text: #{e}\n#{e.backtrace.join("\n")}")
end
nil