eBooru/config/initializers
Kira 33013e0a44 [Debug] Better logging of slow queries
Rails is VERY opaque about which query timed out when reviewing
backtraces for code that loads relations. Often it becomes difficult
to tell exactly which query was generated.

This interrogates the exceptions for these and pulls out the SQL
and bind params for further debugging. Automatic unwrapping of
rails template exceptions is done, as a majority of these seem
to be triggered in production by relations that are lazily loaded
through templates, or template code.

Also I cleaned up the backtrace display a little bit while I was
messing with this code. Usually it isn't relevant to see the 130
lines of rails relationship loader code. Full traces are still
saved so that in the event something happens inside a gem/framework
file it can still be easily located.
2021-04-30 10:12:10 -07:00
..
active_record_api_extensions.rb Add pagination support to Elasticsearch 2019-03-24 08:45:44 -04:00
application_controller_renderer.rb
backtrace_silencers.rb [Debug] Better logging of slow queries 2021-04-30 10:12:10 -07:00
cache_store.rb [Gems] Update gems + fix cache deprecation 2020-10-01 08:12:04 -07:00
content_security_policy.rb [Discord] Fix discord domain after discord changed it 2020-05-08 18:45:37 -07:00
cookies_serializer.rb
core_extensions.rb
cors.rb
delayed_jobs.rb Convert delayed_jobs to activejob 2019-02-17 19:28:40 -08:00
elasticsearch.rb Normalize EOL style + newline at end of files. 2020-10-24 05:50:32 -07:00
ffmpeg.rb add support for upload preprocessing 2018-06-14 17:52:41 -07:00
filter_parameter_logging.rb [Rails] Upgrade to rails 6.1 + fix tests 2021-02-25 12:08:09 -08:00
inflections.rb
mailgun.rb Normalize EOL style + newline at end of files. 2020-10-24 05:50:32 -07:00
mechanize_patch.rb Normalize EOL style + newline at end of files. 2020-10-24 05:50:32 -07:00
mime_types.rb
new_framework_defaults_6_0.rb Update to rails 6 2019-08-28 21:50:40 -07:00
new_framework_defaults_6_1.rb [Rails] Turn off url safe csrf until migration complete 2021-02-25 12:31:57 -08:00
permissions_policy.rb [Rails] Upgrade to rails 6.1 + fix tests 2021-02-25 12:08:09 -08:00
rakismet.rb
recaptcha.rb
secret_token.rb switch from secret_token to secret_key_base 2018-05-15 15:34:53 -07:00
serialization_method.rb Normalize EOL style + newline at end of files. 2020-10-24 05:50:32 -07:00
session_store.rb [Cookies] Hopefully fix Firefox defaulting to SameSite=none 2020-07-02 17:23:16 -07:00
sidekiq.rb [Rails] Update to rails 6 2021-02-25 12:08:09 -08:00
simple_form.rb rename lambda references to use shorthand syntax 2018-05-10 11:18:02 -07:00
unicorn.rb
wrap_parameters.rb
z_action_mailer.rb Replace post archive service with inline code 2019-05-10 16:08:08 -07:00