From f76d1439197b3a8d0c2945fd117426dbc37b6722 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 29 May 2024 16:13:23 +0800 Subject: [PATCH] DEV: Log backtrace along with the error (#27242) Just logging the error message is useless if we don't know where the error message is raised from. --- lib/discourse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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