Skip to content

Find source of queries

James Mason requested to merge bear454:query-caller into master

(cherry picked from commit 458392ef0d334173f65eac41eb23345e3201a024)

Checklist

Short description of what this resolves/which issues does this fix?:

  • Rails logs are inherently ambiguous about the source of a specific query, adding unnecessary difficulty when debugging or performance profiling queries.

Changes proposed in this pull request:

  • Add a log entry, after each ActiveRecord entry, showing the current stack line that triggered the query.

Merge request reports