mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:12:45 +08:00
DEV: Log error backtrace in Discourse.warn_exception
without logster.
This commit is contained in:
parent
5f3fd23fa8
commit
531eca985e
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user