DEV: Log error backtrace in Discourse.warn_exception without logster.

This commit is contained in:
Guo Xiang Tan 2020-06-11 10:49:46 +08:00
parent 5f3fd23fa8
commit 531eca985e
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -745,7 +745,7 @@ module Discourse
)
else
# no logster ... fallback
Rails.logger.warn("#{message} #{e}")
Rails.logger.warn("#{message} #{e}\n#{e.backtrace.join("\n")}")
end
rescue
STDERR.puts "Failed to report exception #{e} #{message}"