mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: attempt to report last exception as the "cause" for failures
This allows our request specs to report exceptions so we can debug May have a few false positives but generally should be quiet TODO only wire magic in for request specs, currently happens for all
This commit is contained in:
@ -50,6 +50,10 @@ Discourse::Application.configure do
|
||||
config.log_level = :fatal
|
||||
end
|
||||
|
||||
if defined? RspecErrorTracker
|
||||
config.middleware.insert_after ActionDispatch::Flash, RspecErrorTracker
|
||||
end
|
||||
|
||||
config.after_initialize do
|
||||
SiteSetting.defaults.tap do |s|
|
||||
s.set_regardless_of_locale(:s3_upload_bucket, 'bucket')
|
||||
|
Reference in New Issue
Block a user