CIVICRM_DEBUG_LOG_QUERY causes PHP to run out of memory (unreleased regression)
CIVICRM_DEBUG_LOG_QUERY is enabled, PHP seems to run out of memory on most (or all) pages:
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /Users/patrick/buildkit/build/xxx/web/sites/all/modules/civicrm/Civi/Core/Paths.php on line 91
I've bisected this down to 79ccdcdf (https://github.com/civicrm/civicrm-core/pull/14222).
Not sure if this just affects
CIVICRM_DEBUG_LOG_QUERY or if there's a more general memory usage regression around logging.