Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.2
-
Fix Version/s: 4.7.3
-
Component/s: None
-
Labels:
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
It is possible to get a log of all queries run in CiviCRM by defining the constant
CIVICRM_DEBUG_LOG_QUERY
ie.
define('CIVICRM_DEBUG_LOG_QUERY', 1);
If you define it as
define('CIVICRM_DEBUG_LOG_QUERY', 'backtrace');
You get a backtrace output.
However the code, somewhat unintuitively, currently interprets
define('CIVICRM_DEBUG_LOG_QUERY', 1);
as 'backtrace' rather than TRUE