-
- Downloads
#2032 Add potential to vary query log files per process
This might be a bit too hacky but I thought I'd put it up for consideration. Basically we have 3 existing options for CIVICRM_DEBUG_LOG_QUERY 1) FALSE = do nothing (5.30 + or same as TRUE for earlier versions 2) backtrace = log a full backtrace 3) anything else - log the sql query This takes a bit of leeway with the 'everything else' and includes the value a part of the prefix for writing to the query log - allowing something like `` env CIVICRM_DEBUG_LOG_QUERY=test_2 drush mycommand `` Which would result in the created log file having a name like ``` CiviCRM.sql_log_test_2.7a880382d2e1d80611365ce1.log ```
Please register or sign in to comment