Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a patch that will add a new admin setting that will enable you to disable query log for certain pages. For example, by setting it to admin/* you can prevent modules/list from crashing on you. If you happen to need the query log on those paths, you can just append forcequerylog=1 to the URL and you'll be able to override the setting.
Comment | File | Size | Author |
---|---|---|---|
develQueryLogDisableAdminSetting.patch | 2.14 KB | mehmeta | |
Comments
Comment #1
kbahey CreditAttribution: kbahey commentedSetting correct component.
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedi want to this, but i want the path to disable/enable the *logging* as well as the display. lets do this for d7 first.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedComment #4
lex0r CreditAttribution: lex0r commentedWhat's the status of moving this to D7? Could I help here?
I need to hide output of SQL log unless certain GET variable is not set.
Redundant output slows down the page, and introduces errors in benchmark results.
Comment #5
salvisD8 has become the target in the meantime.
Comment #6
mstrelan CreditAttribution: mstrelan commentedCan this issue also include the page execution timer / memory usage? Sensible default patterns would be
*autocomplete*
and*ajax*
.Comment #7
willzyx CreditAttribution: willzyx commentedI'm moving this issue to 7.x since in 8.x the whole query logging functionality was moved into webprofiler and webprofiler already provide an "excluded path" configuration