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.
This commit is contained in:
parent
4580844c56
commit
f76d143919
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue