DEV: Log original exception/backtrace for RequestTracker errors (#26802)

This commit is contained in:
David Taylor 2024-04-29 09:05:32 +01:00 committed by GitHub
parent 1510c6d004
commit 620f76cec1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,7 +203,7 @@ class Middleware::RequestTracker
begin
self.class.get_data(env, result, info, request)
rescue StandardError => e
Rails.logger.warn("RequestTracker.get_data failed: #{e}")
Discourse.warn_exception(e, message: "RequestTracker.get_data failed")
nil
end